24#ifndef COMPONENTS_SERVICES_BITS_PSI_TRANSACTION_BITS_H
25#define COMPONENTS_SERVICES_BITS_PSI_TRANSACTION_BITS_H
93 const unsigned long long *trxid,
int isolation_level,
bool read_only,
103 const char *src_file,
104 unsigned int src_line);
113 const void *xid,
int xa_state);
131 const void *gtid_spec);
struct PSI_thread PSI_thread
Definition: psi_thread_bits.h:82
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
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
struct PSI_transaction_locker PSI_transaction_locker
Definition: psi_transaction_bits.h:41
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
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
static int count
Definition: myisam_ftdump.cc:43
constexpr value_type read_only
Definition: classic_protocol_constants.h:213
constexpr value_type autocommit
Definition: classic_protocol_constants.h:152
static bool commit(THD *thd)
Commit the current statement and transaction.
Definition: sql_cmd_srs.cc:152
State data storage for get_thread_transaction_locker_v1_t, get_thread_transaction_locker_v1_t.
Definition: psi_transaction_bits.h:53
bool m_autocommit
True if transaction is autocommit.
Definition: psi_transaction_bits.h:69
void * m_class
Instrumentation class.
Definition: psi_transaction_bits.h:57
unsigned long m_rollback_to_savepoint_count
Number of rollback_to_savepoint.
Definition: psi_transaction_bits.h:75
unsigned long long m_timer_start
Timer start.
Definition: psi_transaction_bits.h:61
void * m_transaction
Internal data.
Definition: psi_transaction_bits.h:65
bool m_read_only
True if read-only transaction, false if read-write.
Definition: psi_transaction_bits.h:67
unsigned long m_statement_count
Number of statements.
Definition: psi_transaction_bits.h:71
struct PSI_thread * m_thread
Current thread.
Definition: psi_transaction_bits.h:59
unsigned long m_savepoint_count
Total number of savepoints.
Definition: psi_transaction_bits.h:73
unsigned long long(* m_timer)(void)
Timer function.
Definition: psi_transaction_bits.h:63
unsigned long m_release_savepoint_count
Number of release_savepoint.
Definition: psi_transaction_bits.h:77
unsigned int m_flags
Internal state.
Definition: psi_transaction_bits.h:55