24#ifndef MYSQL_PSI_TRANSACTION_H
25#define MYSQL_PSI_TRANSACTION_H
50#define PSI_TRANSACTION_VERSION_1 1
57#define PSI_CURRENT_TRANSACTION_VERSION 1
73#ifdef HAVE_PSI_TRANSACTION_INTERFACE
void(* end_transaction_v1_t)(struct PSI_transaction_locker *locker, bool commit)
Commit or rollback the transaction.
Definition: psi_transaction_bits.h:170
void(* set_transaction_trxid_v1_t)(struct PSI_transaction_locker *locker, const unsigned long long *trxid)
Set the transaction trx_id.
Definition: psi_transaction_bits.h:138
void(* set_transaction_gtid_v1_t)(struct PSI_transaction_locker *locker, const void *sid, const void *gtid_spec)
Set the transaction gtid.
Definition: psi_transaction_bits.h:129
MYSQL_PLUGIN_IMPORT PSI_transaction_service_t * psi_transaction_service
Definition: psi_noop.cc:903
void(* inc_transaction_release_savepoint_v1_t)(struct PSI_transaction_locker *locker, unsigned long count)
Increment a transaction event release savepoint count.
Definition: psi_transaction_bits.h:162
void(* inc_transaction_rollback_to_savepoint_v1_t)(struct PSI_transaction_locker *locker, unsigned long count)
Increment a transaction event rollback to savepoint count.
Definition: psi_transaction_bits.h:154
void(* set_transaction_xa_state_v1_t)(struct PSI_transaction_locker *locker, int xa_state)
Set the state of the XA transaction.
Definition: psi_transaction_bits.h:120
void(* inc_transaction_savepoints_v1_t)(struct PSI_transaction_locker *locker, unsigned long count)
Increment a transaction event savepoint count.
Definition: psi_transaction_bits.h:146
struct PSI_transaction_locker *(* get_thread_transaction_locker_v1_t)(struct PSI_transaction_locker_state_v1 *state, const void *xid, const unsigned long long *trxid, int isolation_level, bool read_only, bool autocommit)
Get a transaction instrumentation locker.
Definition: psi_transaction_bits.h:91
void(* set_transaction_xid_v1_t)(struct PSI_transaction_locker *locker, const void *xid, int xa_state)
Set the transaction xid.
Definition: psi_transaction_bits.h:112
void(* start_transaction_v1_t)(struct PSI_transaction_locker *locker, const char *src_file, unsigned int src_line)
Start a new transaction event.
Definition: psi_transaction_bits.h:102
Some integer typedefs for easier portability.
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Functions related to handling of plugins and other dynamically loaded libraries.
#define MYSQL_PLUGIN_IMPORT
Definition: my_sharedlib.h:71
Performance schema instrumentation interface.
required uint64 version
Definition: replication_group_member_actions.proto:41
Entry point for the performance schema interface.
Definition: psi_transaction.h:60
Performance Schema Transaction Interface, version 1.
Definition: psi_transaction.h:79
inc_transaction_savepoints_v1_t inc_transaction_savepoints
Definition: psi_transaction.h:93
get_thread_transaction_locker_v1_t get_thread_transaction_locker
Definition: psi_transaction.h:81
set_transaction_trxid_v1_t set_transaction_trxid
Definition: psi_transaction.h:91
start_transaction_v1_t start_transaction
Definition: psi_transaction.h:83
inc_transaction_release_savepoint_v1_t inc_transaction_release_savepoint
Definition: psi_transaction.h:98
inc_transaction_rollback_to_savepoint_v1_t inc_transaction_rollback_to_savepoint
Definition: psi_transaction.h:96
end_transaction_v1_t end_transaction
Definition: psi_transaction.h:100
set_transaction_gtid_v1_t set_transaction_gtid
Definition: psi_transaction.h:89
set_transaction_xa_state_v1_t set_transaction_xa_state
Definition: psi_transaction.h:87
set_transaction_xid_v1_t set_transaction_xid
Definition: psi_transaction.h:85