D.S

dev.mysql.com

MySQL: Transaction Instrumentation (ABI)

MySQL: Transaction Instrumentation (ABI) MySQL  8.0.0 Source Code Documentation Main Page Related Pages Modules Namespaces Classes Files Classes | Macros | Typedefs | Variables Transaction Instrumentation (ABI) Performance Schema » Instrumentation Interface » Instrumentation Binary Interface Classes struct   PSI_transaction_bootstrap   Entry point for the performance schema interface. More...   struct   PSI_transaction_locker_state_v1   State data storage for get_thread_transaction_locker_v1_t, get_thread_transaction_locker_v1_t. More...   struct   PSI_transaction_service_v1   Performance Schema Transaction Interface, version 1. More...   Macros #define  PSI_TRANSACTION_VERSION_1    1   Performance Schema Transaction Interface number for version 1. More...   #define  PSI_TRANSACTION_VERSION_2    2   Performance Schema Transaction Interface number for version 2. More...   #define  PSI_CURRENT_TRANSACTION_VERSION    1   Performance Schema Transaction Interface number for the most recent version. More...   #define  USE_PSI_TRANSACTION_1   #define  HAVE_PSI_TRANSACTION_1   Typedefs typedef struct PSI_transaction_bootstrap   PSI_transaction_bootstrap   typedef struct PSI_transaction_locker   PSI_transaction_locker   typedef struct PSI_transaction_locker_state_v1   PSI_transaction_locker_state_v1   typedef struct PSI_transaction_locker *(*  get_thread_transaction_locker_v1_t ) (struct PSI_transaction_locker_state_v1 *state, const void *xid, const ulonglong *trxid, int isolation_level, my_bool read_only , my_bool autocommit)   Get a transaction instrumentation locker. More...   typedef void(*  start_transaction_v1_t ) (struct PSI_transaction_locker *locker, const char *src_file, uint src_line)   Start a new transaction event. More...   typedef void(*  set_transaction_xid_v1_t ) (struct PSI_transaction_locker *locker, const void *xid, int xa_state)   Set the transaction xid. More...   typedef void(*  set_transaction_xa_state_v1_t ) (struct PSI_transaction_locker *locker, int xa_state)   Set the state of the XA transaction. More...   typedef void(*  set_transaction_gtid_v1_t ) (struct PSI_transaction_locker *locker, const void *sid, const void *gtid_spec)   Set the transaction gtid. More...   typedef void(*  set_transaction_trxid_v1_t ) (struct PSI_transaction_locker *locker, const ulonglong *trxid)   Set the transaction trx_id. More...   typedef void(*  inc_transaction_savepoints_v1_t ) (struct PSI_transaction_locker *locker, ulong count )   Increment a transaction event savepoint count. More...   typedef void(*  inc_transaction_rollback_to_savepoint_v1_t ) (struct PSI_transaction_locker *locker, ulong count )   Increment a transaction event rollback to savepoint count. More...   typedef void(*  inc_transaction_release_savepoint_v1_t ) (struct PSI_transaction_locker *locker, ulong count )   Increment a transaction event release savepoint count. More...   typedef void(*  end_transaction_v1_t ) (struct PSI_transaction_locker *locker, my_bool commit)   Commit or rollback the transaction. More...   typedef struct PSI_transaction_service_v1   PSI_transaction_service_t   typedef struct PSI_transaction_locker_state_v1   PSI_transaction_locker_state   Variables MYSQL_PLUGIN_IMPORT PSI_transaction_service_t *  psi_transaction_service   Detailed Description Macro Definition Documentation #define HAVE_PSI_TRANSACTION_1 #define PSI_CURRENT_TRANSACTION_VERSION   1 Performance Schema Transaction Interface number for the most recent version. The most current version is PSI_TRANSACTION_VERSION_1 #define PSI_TRANSACTION_VERSION_1   1 Performance Schema Transaction Interface number for version 1. This version is supported. #define PSI_TRANSACTION_VERSION_2   2 Performance Schema Transaction Interface number for version 2. This version is not implemented, it's a placeholder. #define USE_PSI_TRANSACTION_1 Typedef Documentation typedef void(* end_transaction_v1_t) (struct PSI_transaction_locker *locker, my_bool commit) Commit or rollback the transaction. Parameters locker the transaction locker for this event commit true if transaction was committed, false if rolled back typedef struct PSI_transaction_locker *(* get_thread_transaction_locker_v1_t) (struct PSI_transaction_locker_state_v1 *state, const void *xid, const ulonglong *trxid, int isolation_level, my_bool read_only , my_bool autocommit) Get a transaction instrumentation locker. Parameters state data storage for the locker xid the xid for this transaction trxid the InnoDB transaction id isolation_level isolation level for this transaction read_only true if transaction access mode is read-only autocommit true if transaction is autocommit Returns a transaction locker, or NULL typedef void(* inc_transaction_release_savepoint_v1_t) (struct PSI_transaction_locker *locker, ulong count ) Increment a transaction event release savepoint count. Parameters locker the transaction locker count the increment value typedef void(* inc_transaction_rollback_to_savepoint_v1_t) (struct PSI_transact