MySQL 8.0.40
Source Code Documentation
mysql_transaction.h File Reference

Instrumentation helpers for transactions. More...

Go to the source code of this file.

Macros

#define MYSQL_START_TRANSACTION(STATE, XID, TRXID, ISO, RO, AC)
 
#define MYSQL_SET_TRANSACTION_GTID(LOCKER, P1, P2)    inline_mysql_set_transaction_gtid(LOCKER, P1, P2)
 
#define MYSQL_SET_TRANSACTION_XID(LOCKER, P1, P2)    inline_mysql_set_transaction_xid(LOCKER, P1, P2)
 
#define MYSQL_SET_TRANSACTION_XA_STATE(LOCKER, P1)    inline_mysql_set_transaction_xa_state(LOCKER, P1)
 
#define MYSQL_SET_TRANSACTION_TRXID(LOCKER, P1)    inline_mysql_set_transaction_trxid(LOCKER, P1)
 
#define MYSQL_INC_TRANSACTION_SAVEPOINTS(LOCKER, P1)    inline_mysql_inc_transaction_savepoints(LOCKER, P1)
 
#define MYSQL_INC_TRANSACTION_ROLLBACK_TO_SAVEPOINT(LOCKER, P1)    inline_mysql_inc_transaction_rollback_to_savepoint(LOCKER, P1)
 
#define MYSQL_INC_TRANSACTION_RELEASE_SAVEPOINT(LOCKER, P1)    inline_mysql_inc_transaction_release_savepoint(LOCKER, P1)
 
#define MYSQL_ROLLBACK_TRANSACTION(LOCKER)    inline_mysql_rollback_transaction(LOCKER)
 
#define MYSQL_COMMIT_TRANSACTION(LOCKER)   inline_mysql_commit_transaction(LOCKER)
 

Functions

static struct PSI_transaction_lockerinline_mysql_start_transaction (PSI_transaction_locker_state *state, const void *xid, const ulonglong *trxid, int isolation_level, bool read_only, bool autocommit, const char *src_file, int src_line)
 
static void inline_mysql_set_transaction_gtid (PSI_transaction_locker *locker, const void *sid, const void *gtid_spec)
 
static void inline_mysql_set_transaction_xid (PSI_transaction_locker *locker, const void *xid, int xa_state)
 
static void inline_mysql_set_transaction_xa_state (PSI_transaction_locker *locker, int xa_state)
 
static void inline_mysql_set_transaction_trxid (PSI_transaction_locker *locker, const ulonglong *trxid)
 
static void inline_mysql_inc_transaction_savepoints (PSI_transaction_locker *locker, ulong count)
 
static void inline_mysql_inc_transaction_rollback_to_savepoint (PSI_transaction_locker *locker, ulong count)
 
static void inline_mysql_inc_transaction_release_savepoint (PSI_transaction_locker *locker, ulong count)
 
static void inline_mysql_rollback_transaction (struct PSI_transaction_locker *locker)
 
static void inline_mysql_commit_transaction (struct PSI_transaction_locker *locker)
 

Detailed Description

Instrumentation helpers for transactions.