MySQL 9.1.0
Source Code Documentation
|
Events transactions data structures (declarations). More...
#include <sys/types.h>
#include <atomic>
#include "my_inttypes.h"
#include "mysql/gtid/tsid.h"
#include "sql/rpl_gtid.h"
#include "storage/perfschema/pfs_column_types.h"
#include "storage/perfschema/pfs_events.h"
#include "storage/perfschema/pfs_global.h"
Go to the source code of this file.
Classes | |
struct | PSI_xid |
struct PSI_xid is binary compatible with the XID structure as in the X/Open CAE Specification, Distributed Transaction Processing: The XA Specification, X/Open Company Ltd., 1991. More... | |
struct | PFS_events_transactions |
A transaction record. More... | |
Macros | |
#define | XIDDATASIZE 128 |
Typedefs | |
typedef struct PSI_xid | PSI_xid |
Functions | |
bool | xid_printable (PSI_xid *xid, size_t offset, size_t length) |
Check if the XID consists of printable characters, ASCII 32 - 127. More... | |
void | insert_events_transactions_history (PFS_thread *thread, PFS_events_transactions *transaction) |
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY. More... | |
void | insert_events_transactions_history_long (PFS_events_transactions *transaction) |
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY_LONG. More... | |
int | init_events_transactions_history_long (uint events_transactions_history_long_sizing) |
Initialize table EVENTS_TRANSACTIONS_HISTORY_LONG. More... | |
void | cleanup_events_transactions_history_long () |
Cleanup table EVENTS_TRANSACTIONS_HISTORY_LONG. More... | |
void | reset_events_transactions_current () |
Reset table EVENTS_TRANSACTIONS_CURRENT data. More... | |
void | reset_events_transactions_history () |
Reset table EVENTS_TRANSACTIONS_HISTORY data. More... | |
void | reset_events_transactions_history_long () |
Reset table EVENTS_TRANSACTIONS_HISTORY_LONG data. More... | |
void | reset_events_transactions_by_thread () |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_THREAD_BY_EVENT_NAME data. More... | |
void | reset_events_transactions_by_account () |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data. More... | |
void | reset_events_transactions_by_user () |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_USER_BY_EVENT_NAME data. More... | |
void | reset_events_transactions_by_host () |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_HOST_BY_EVENT_NAME data. More... | |
void | reset_events_transactions_global () |
Reset table EVENTS_TRANSACTIONS_GLOBAL_BY_EVENT_NAME data. More... | |
void | aggregate_account_transactions (PFS_account *account) |
void | aggregate_user_transactions (PFS_user *user) |
void | aggregate_host_transactions (PFS_host *host) |
Variables | |
bool | flag_events_transactions_current |
Consumer flag for table EVENTS_TRANSACTIONS_CURRENT. More... | |
bool | flag_events_transactions_history |
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY. More... | |
bool | flag_events_transactions_history_long |
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY_LONG. More... | |
bool | events_transactions_history_long_full |
True if EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer is full. More... | |
PFS_cacheline_atomic_uint32 | events_transactions_history_long_index |
Index in EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer. More... | |
PFS_events_transactions * | events_transactions_history_long_array |
EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer. More... | |
ulong | events_transactions_history_long_size |
Events transactions data structures (declarations).
#define XIDDATASIZE 128 |
void aggregate_account_transactions | ( | PFS_account * | account | ) |
void aggregate_host_transactions | ( | PFS_host * | host | ) |
void aggregate_user_transactions | ( | PFS_user * | user | ) |
void cleanup_events_transactions_history_long | ( | ) |
Cleanup table EVENTS_TRANSACTIONS_HISTORY_LONG.
int init_events_transactions_history_long | ( | uint | events_transactions_history_long_sizing | ) |
Initialize table EVENTS_TRANSACTIONS_HISTORY_LONG.
events_transactions_history_long_sizing | table sizing |
void insert_events_transactions_history | ( | PFS_thread * | thread, |
PFS_events_transactions * | transaction | ||
) |
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY.
thread | thread that executed the wait |
transaction | record to insert |
void insert_events_transactions_history_long | ( | PFS_events_transactions * | transaction | ) |
Insert a transaction record in table EVENTS_TRANSACTIONS_HISTORY_LONG.
transaction | record to insert |
void reset_events_transactions_by_account | ( | ) |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_ACCOUNT_BY_EVENT_NAME data.
void reset_events_transactions_by_host | ( | ) |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_HOST_BY_EVENT_NAME data.
void reset_events_transactions_by_thread | ( | ) |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_THREAD_BY_EVENT_NAME data.
void reset_events_transactions_by_user | ( | ) |
Reset table EVENTS_TRANSACTIONS_SUMMARY_BY_USER_BY_EVENT_NAME data.
void reset_events_transactions_current | ( | ) |
Reset table EVENTS_TRANSACTIONS_CURRENT data.
void reset_events_transactions_global | ( | ) |
Reset table EVENTS_TRANSACTIONS_GLOBAL_BY_EVENT_NAME data.
void reset_events_transactions_history | ( | ) |
Reset table EVENTS_TRANSACTIONS_HISTORY data.
void reset_events_transactions_history_long | ( | ) |
Reset table EVENTS_TRANSACTIONS_HISTORY_LONG data.
bool xid_printable | ( | PSI_xid * | xid, |
size_t | offset, | ||
size_t | length | ||
) |
Check if the XID consists of printable characters, ASCII 32 - 127.
xid | XID structure |
offset | offset into XID.data[] |
length | number of bytes to process |
|
extern |
EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer.
|
extern |
True if EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer is full.
|
extern |
Index in EVENTS_TRANSACTIONS_HISTORY_LONG circular buffer.
|
extern |
|
extern |
Consumer flag for table EVENTS_TRANSACTIONS_CURRENT.
|
extern |
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY.
|
extern |
Consumer flag for table EVENTS_TRANSACTIONS_HISTORY_LONG.