23#ifndef PFS_EVENTS_TRANSACTIONS_H
24#define PFS_EVENTS_TRANSACTIONS_H
44#define XIDDATASIZE 128
130 uint events_transactions_history_long_sizing);
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
char * user
Definition: mysqladmin.cc:64
const char * host
Definition: mysqladmin.cc:63
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:75
Data types for columns used in the performance schema tables (declarations)
enum_isolation_level
Enum values for transaction isolation level columns.
Definition: pfs_column_types.h:323
enum_transaction_state
Enum values for transaction state columns.
Definition: pfs_column_types.h:286
enum_xa_transaction_state
Enum values for XA transaction state columns.
Definition: pfs_column_types.h:303
Events data structures (declarations).
void aggregate_account_transactions(PFS_account *account)
void aggregate_user_transactions(PFS_user *user)
bool xid_printable(PSI_xid *xid, size_t offset, size_t length)
Check if the XID consists of printable characters, ASCII 32 - 127.
Definition: pfs_events_transactions.cc:250
void reset_events_transactions_history_long()
Reset table EVENTS_TRANSACTIONS_HISTORY_LONG data.
Definition: pfs_events_transactions.cc:187
PFS_events_transactions * events_transactions_history_long_array
EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer.
Definition: pfs_events_transactions.cc:63
ulong events_transactions_history_long_size
Definition: pfs_events_transactions.cc:50
void reset_events_transactions_current()
Reset table EVENTS_TRANSACTIONS_CURRENT data.
Definition: pfs_events_transactions.cc:165
void reset_events_transactions_global()
Reset table EVENTS_TRANSACTIONS_GLOBAL_BY_EVENT_NAME data.
Definition: pfs_events_transactions.cc:241
void reset_events_transactions_by_user()
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_USER_BY_EVENT_NAME data.
Definition: pfs_events_transactions.cc:227
void cleanup_events_transactions_history_long()
Cleanup table EVENTS_TRANSACTIONS_HISTORY_LONG.
Definition: pfs_events_transactions.cc:90
bool events_transactions_history_long_full
True if EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer is full.
Definition: pfs_events_transactions.cc:59
void reset_events_transactions_by_thread()
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.
Definition: pfs_events_transactions.cc:207
void reset_events_transactions_by_host()
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_HOST_BY_EVENT_NAME data.
Definition: pfs_events_transactions.cc:236
void aggregate_host_transactions(PFS_host *host)
int init_events_transactions_history_long(uint events_transactions_history_long_sizing)
Initialize table EVENTS_TRANSACTIONS_HISTORY_LONG.
Definition: pfs_events_transactions.cc:70
bool flag_events_transactions_history_long
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY_LONG.
Definition: pfs_events_transactions.cc:56
bool flag_events_transactions_current
Consumer flag for table EVENTS_TRANSACTIONS_CURRENT.
Definition: pfs_events_transactions.cc:52
void reset_events_transactions_by_account()
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.
Definition: pfs_events_transactions.cc:218
bool flag_events_transactions_history
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY.
Definition: pfs_events_transactions.cc:54
PFS_cacheline_atomic_uint32 events_transactions_history_long_index
Index in EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer.
Definition: pfs_events_transactions.cc:61
void insert_events_transactions_history(PFS_thread *thread, PFS_events_transactions *transaction)
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY.
Definition: pfs_events_transactions.cc:108
void reset_events_transactions_history()
Reset table EVENTS_TRANSACTIONS_HISTORY data.
Definition: pfs_events_transactions.cc:182
void insert_events_transactions_history_long(PFS_events_transactions *transaction)
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY_LONG.
Definition: pfs_events_transactions.cc:140
#define XIDDATASIZE
Definition: pfs_events_transactions.h:44
Miscellaneous global dependencies (declarations).
This struct represents a specification of a GTID for a statement to be executed: either "AUTOMATIC",...
Definition: rpl_gtid.h:3801
Per account statistics.
Definition: pfs_account.h:66
An atomic uint32 variable, guaranteed to be alone in a CPU cache line.
Definition: pfs_global.h:76
A transaction record.
Definition: pfs_events_transactions.h:84
enum_xa_transaction_state m_xa_state
XA status.
Definition: pfs_events_transactions.h:98
enum_transaction_state m_state
Status.
Definition: pfs_events_transactions.h:90
bool m_autocommit
True if autocommit transaction.
Definition: pfs_events_transactions.h:104
rpl_sid m_sid
Source identifier, mapped from internal format.
Definition: pfs_events_transactions.h:86
bool m_xa
True if XA transaction.
Definition: pfs_events_transactions.h:94
ulonglong m_trxid
InnoDB transaction ID.
Definition: pfs_events_transactions.h:88
ulonglong m_rollback_to_savepoint_count
Number of rollback_to_savepoint.
Definition: pfs_events_transactions.h:108
ulonglong m_release_savepoint_count
Number of release_savepoint.
Definition: pfs_events_transactions.h:110
enum_isolation_level m_isolation_level
Transaction isolation level.
Definition: pfs_events_transactions.h:100
bool m_read_only
True if read-only transaction, otherwise read-write.
Definition: pfs_events_transactions.h:102
PSI_xid m_xid
XA transaction ID.
Definition: pfs_events_transactions.h:96
ulonglong m_savepoint_count
Total number of savepoints.
Definition: pfs_events_transactions.h:106
Gtid_specification m_gtid_spec
Global Transaction ID specifier.
Definition: pfs_events_transactions.h:92
An event record.
Definition: pfs_events.h:37
Per host statistics.
Definition: pfs_host.h:63
Instrumented thread implementation.
Definition: pfs_instr.h:374
Per user statistics.
Definition: pfs_user.h:62
struct PSI_xid is binary compatible with the XID structure as in the X/Open CAE Specification,...
Definition: pfs_events_transactions.h:63
long bqual_length
BQUAL length, value 1-64.
Definition: pfs_events_transactions.h:69
long formatID
Format identifier.
Definition: pfs_events_transactions.h:65
PSI_xid()
Definition: pfs_events_transactions.h:73
char data[XIDDATASIZE]
XID raw data, not \0-terminated.
Definition: pfs_events_transactions.h:71
bool is_null() const
Definition: pfs_events_transactions.h:74
long gtrid_length
GTRID length, value 1-64.
Definition: pfs_events_transactions.h:67
This is a POD.
Definition: uuid.h:60