MySQL 9.1.0
Source Code Documentation
Collaboration diagram for Transaction Instrumentation (API):

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

Macro Definition Documentation

◆ MYSQL_COMMIT_TRANSACTION

#define MYSQL_COMMIT_TRANSACTION (   LOCKER)    inline_mysql_commit_transaction(LOCKER)

◆ MYSQL_INC_TRANSACTION_RELEASE_SAVEPOINT

#define MYSQL_INC_TRANSACTION_RELEASE_SAVEPOINT (   LOCKER,
  P1 
)     inline_mysql_inc_transaction_release_savepoint(LOCKER, P1)

◆ MYSQL_INC_TRANSACTION_ROLLBACK_TO_SAVEPOINT

#define MYSQL_INC_TRANSACTION_ROLLBACK_TO_SAVEPOINT (   LOCKER,
  P1 
)     inline_mysql_inc_transaction_rollback_to_savepoint(LOCKER, P1)

◆ MYSQL_INC_TRANSACTION_SAVEPOINTS

#define MYSQL_INC_TRANSACTION_SAVEPOINTS (   LOCKER,
  P1 
)     inline_mysql_inc_transaction_savepoints(LOCKER, P1)

◆ MYSQL_ROLLBACK_TRANSACTION

#define MYSQL_ROLLBACK_TRANSACTION (   LOCKER)     inline_mysql_rollback_transaction(LOCKER)

◆ MYSQL_SET_TRANSACTION_GTID

#define MYSQL_SET_TRANSACTION_GTID (   LOCKER,
  P1,
  P2 
)     inline_mysql_set_transaction_gtid(LOCKER, P1, P2)

◆ MYSQL_SET_TRANSACTION_TRXID

#define MYSQL_SET_TRANSACTION_TRXID (   LOCKER,
  P1 
)     inline_mysql_set_transaction_trxid(LOCKER, P1)

◆ MYSQL_SET_TRANSACTION_XA_STATE

#define MYSQL_SET_TRANSACTION_XA_STATE (   LOCKER,
  P1 
)     inline_mysql_set_transaction_xa_state(LOCKER, P1)

◆ MYSQL_SET_TRANSACTION_XID

#define MYSQL_SET_TRANSACTION_XID (   LOCKER,
  P1,
  P2 
)     inline_mysql_set_transaction_xid(LOCKER, P1, P2)

◆ MYSQL_START_TRANSACTION

#define MYSQL_START_TRANSACTION (   STATE,
  XID,
  TRXID,
  ISO,
  RO,
  AC 
)
Value:
inline_mysql_start_transaction(STATE, XID, TRXID, ISO, RO, AC, __FILE__, \
__LINE__)
static struct PSI_transaction_locker * inline_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)
Definition: mysql_transaction.h:138
struct xid_t is binary compatible with the XID structure as in the X/Open CAE Specification,...
Definition: xa.h:83

Function Documentation

◆ inline_mysql_commit_transaction()

static void inline_mysql_commit_transaction ( struct PSI_transaction_locker locker)
inlinestatic

◆ inline_mysql_inc_transaction_release_savepoint()

static void inline_mysql_inc_transaction_release_savepoint ( PSI_transaction_locker locker,
ulong  count 
)
inlinestatic

◆ inline_mysql_inc_transaction_rollback_to_savepoint()

static void inline_mysql_inc_transaction_rollback_to_savepoint ( PSI_transaction_locker locker,
ulong  count 
)
inlinestatic

◆ inline_mysql_inc_transaction_savepoints()

static void inline_mysql_inc_transaction_savepoints ( PSI_transaction_locker locker,
ulong  count 
)
inlinestatic

◆ inline_mysql_rollback_transaction()

static void inline_mysql_rollback_transaction ( struct PSI_transaction_locker locker)
inlinestatic

◆ inline_mysql_set_transaction_gtid()

static void inline_mysql_set_transaction_gtid ( PSI_transaction_locker locker,
const void *  sid,
const void *  gtid_spec 
)
inlinestatic

◆ inline_mysql_set_transaction_trxid()

static void inline_mysql_set_transaction_trxid ( PSI_transaction_locker locker,
const ulonglong trxid 
)
inlinestatic

◆ inline_mysql_set_transaction_xa_state()

static void inline_mysql_set_transaction_xa_state ( PSI_transaction_locker locker,
int  xa_state 
)
inlinestatic

◆ inline_mysql_set_transaction_xid()

static void inline_mysql_set_transaction_xid ( PSI_transaction_locker locker,
const void *  xid,
int  xa_state 
)
inlinestatic

◆ inline_mysql_start_transaction()

static struct PSI_transaction_locker * inline_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 
)
inlinestatic