MySQL 8.0.40
Source Code Documentation
service_rpl_transaction_ctx.h File Reference

This service provides a function for plugins to report if a transaction of a given THD should continue or be aborted. More...

#include <stdlib.h>
#include <cstdint>

Go to the source code of this file.

Classes

struct  Transaction_termination_ctx
 
struct  rpl_transaction_ctx_service_st
 

Macros

#define MYSQL_SERVICE_RPL_TRANSACTION_CTX_INCLUDED
 

Functions

int set_transaction_ctx (Transaction_termination_ctx transaction_termination_ctx)
 

Variables

struct rpl_transaction_ctx_service_strpl_transaction_ctx_service
 

Detailed Description

This service provides a function for plugins to report if a transaction of a given THD should continue or be aborted.

Set transaction context, that is, notify the server that for external reasons the ongoing transaction should continue or be aborted.

Implementation of service_transaction_veredict, see.

SYNOPSIS set_transaction_ctx() should be called during RUN_HOOK macro, on which we know that thread is on plugin context and it is before Rpl_transaction_ctx::is_transaction_rollback() check.

See

Parameters
transaction_termination_ctxTransaction termination context
Return values
0success
!=0error

Macro Definition Documentation

◆ MYSQL_SERVICE_RPL_TRANSACTION_CTX_INCLUDED

#define MYSQL_SERVICE_RPL_TRANSACTION_CTX_INCLUDED

Function Documentation

◆ set_transaction_ctx()

int set_transaction_ctx ( Transaction_termination_ctx  transaction_termination_ctx)

Variable Documentation

◆ rpl_transaction_ctx_service

struct rpl_transaction_ctx_service_st * rpl_transaction_ctx_service