23#ifndef PFS_TRANSACTION_PROVIDER_H
24#define PFS_TRANSACTION_PROVIDER_H
34#ifdef HAVE_PSI_TRANSACTION_INTERFACE
35#if defined(MYSQL_SERVER) || defined(PFS_DIRECT_CALL)
36#ifndef MYSQL_DYNAMIC_PLUGIN
37#ifndef WITH_LOCK_ORDER
47#define PSI_TRANSACTION_CALL(M) pfs_##M##_v1
55 const char *src_file, uint src_line);
64 const void *sid,
const void *gtid_spec);
struct PSI_transaction_locker PSI_transaction_locker
Definition: psi_transaction_bits.h:40
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
static int count
Definition: myisam_ftdump.cc:44
constexpr value_type read_only
Definition: classic_protocol_constants.h:212
constexpr value_type autocommit
Definition: classic_protocol_constants.h:151
void pfs_set_transaction_xa_state_v1(PSI_transaction_locker *locker, int xa_state)
Definition: pfs.cc:7754
void pfs_inc_transaction_rollback_to_savepoint_v1(PSI_transaction_locker *locker, ulong count)
Definition: pfs.cc:7806
void pfs_end_transaction_v1(PSI_transaction_locker *locker, bool commit)
Definition: pfs.cc:7816
void pfs_set_transaction_trxid_v1(PSI_transaction_locker *locker, const ulonglong *trxid)
Definition: pfs.cc:7769
void pfs_start_transaction_v1(PSI_transaction_locker *locker, const char *src_file, uint src_line)
Definition: pfs.cc:7694
void pfs_set_transaction_gtid_v1(PSI_transaction_locker *locker, const void *sid, const void *gtid_spec)
Definition: pfs.cc:7721
void pfs_set_transaction_xid_v1(PSI_transaction_locker *locker, const void *xid, int xa_state)
Definition: pfs.cc:7737
void pfs_inc_transaction_savepoints_v1(PSI_transaction_locker *locker, ulong count)
Definition: pfs.cc:7801
void pfs_inc_transaction_release_savepoint_v1(PSI_transaction_locker *locker, ulong count)
Definition: pfs.cc:7811
PSI_transaction_locker * pfs_get_thread_transaction_locker_v1(PSI_transaction_locker_state *state, const void *xid, const ulonglong *trxid, int isolation_level, bool read_only, bool autocommit)
Definition: pfs.cc:7604
Performance schema instrumentation interface.
static bool commit(THD *thd)
Commit the current statement and transaction.
Definition: sql_cmd_srs.cc:151
State data storage for get_thread_transaction_locker_v1_t, get_thread_transaction_locker_v1_t.
Definition: psi_transaction_bits.h:52