25#ifndef TABLE_REPLICATION_CONNECTION_STATUS_H
26#define TABLE_REPLICATION_CONNECTION_STATUS_H
57#ifndef ENUM_RPL_YES_NO
58#define ENUM_RPL_YES_NO
179 bool read_all)
override;
193 int rnd_pos(
const void *pos)
override;
195 int index_init(uint idx,
bool sorted)
override;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Definition: pfs_engine_table.h:300
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_replication_connection_status.h:123
PFS_key_name m_key
Definition: table_replication_connection_status.h:133
PFS_index_rpl_connection_status_by_channel()
Definition: table_replication_connection_status.h:125
bool match(Master_info *mi) override
Definition: table_replication_connection_status.cc:136
~PFS_index_rpl_connection_status_by_channel() override=default
Definition: table_replication_connection_status.h:137
~PFS_index_rpl_connection_status_by_thread() override=default
PFS_index_rpl_connection_status_by_thread()
Definition: table_replication_connection_status.h:139
bool match(Master_info *mi) override
Definition: table_replication_connection_status.cc:153
PFS_key_thread_id m_key
Definition: table_replication_connection_status.h:147
Definition: table_replication_connection_status.h:112
virtual bool match(Master_info *mi)=0
~PFS_index_rpl_connection_status() override=default
PFS_index_rpl_connection_status(PFS_engine_key *key)
Definition: table_replication_connection_status.h:114
Definition: table_helper.h:1554
Definition: table_helper.h:1279
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Table PERFORMANCE_SCHEMA.REPLICATION_CONNECTION_STATUS.
Definition: table_replication_connection_status.h:151
PFS_simple_index pos_t
Definition: table_replication_connection_status.h:152
int index_next() override
Find key in index, read record.
Definition: table_replication_connection_status.cc:254
int index_init(uint idx, bool sorted) override
Definition: table_replication_connection_status.cc:235
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_replication_connection_status.cc:176
st_row_connect_status m_row
Current row.
Definition: table_replication_connection_status.h:163
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_replication_connection_status.cc:187
static ha_rows get_row_count()
Definition: table_replication_connection_status.cc:192
pos_t m_pos
Current position.
Definition: table_replication_connection_status.h:165
PFS_index_rpl_connection_status * m_opened_index
Definition: table_replication_connection_status.h:199
pos_t m_next_pos
Next position.
Definition: table_replication_connection_status.h:167
table_replication_connection_status()
Definition: table_replication_connection_status.cc:181
static Plugin_table m_table_def
Table definition.
Definition: table_replication_connection_status.h:160
int make_row(Master_info *mi)
Definition: table_replication_connection_status.cc:279
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_replication_connection_status.cc:197
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_replication_connection_status.cc:216
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_replication_connection_status.cc:409
static THR_LOCK m_table_lock
Table share lock.
Definition: table_replication_connection_status.h:158
~table_replication_connection_status() override
static PFS_engine_table_share m_share
Table share.
Definition: table_replication_connection_status.h:187
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
void my_free(void *ptr)
Frees the memory pointed by the ptr.
Definition: my_memory.cc:81
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
Definition: buf0block_hint.cc:30
Performance schema tables (declarations).
required string key
Definition: replication_asynchronous_connection_failover.proto:60
#define CHANNEL_NAME_LENGTH
Definition: rpl_info.h:41
#define MAX_SLAVE_ERRMSG
Maximum size of an error message from a slave thread.
Definition: rpl_reporting.h:42
File containing constants that can be used throughout the server.
constexpr const size_t UUID_LENGTH
Definition: sql_const.h:265
static const int MAX_TEXT_LENGTH
The maximal length of the textual representation of a TSID, not including the terminating '\0'.
Definition: rpl_gtid.h:1137
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:358
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:566
Definition: thr_lock.h:139
Definition: table_replication_connection_status.h:72
int received_transaction_set_length
Definition: table_replication_connection_status.h:85
ulonglong last_queued_trx_immediate_commit_timestamp
Definition: table_replication_connection_status.h:93
ulonglong last_queued_trx_end_queue_timestamp
Definition: table_replication_connection_status.h:95
ulonglong queueing_trx_start_queue_timestamp
Definition: table_replication_connection_status.h:100
uint last_queued_trx_length
Definition: table_replication_connection_status.h:91
enum_rpl_connect_status_service_state service_state
Definition: table_replication_connection_status.h:81
ulonglong last_queued_trx_original_commit_timestamp
Definition: table_replication_connection_status.h:92
char group_name[UUID_LENGTH]
Definition: table_replication_connection_status.h:73
void cleanup()
Definition: table_replication_connection_status.h:104
ulonglong queueing_trx_original_commit_timestamp
Definition: table_replication_connection_status.h:98
char last_queued_trx[Gtid::MAX_TEXT_LENGTH+1]
Definition: table_replication_connection_status.h:90
char channel_name[CHANNEL_NAME_LENGTH]
Definition: table_replication_connection_status.h:75
char last_error_message[MAX_SLAVE_ERRMSG]
Definition: table_replication_connection_status.h:87
ulonglong last_queued_trx_start_queue_timestamp
Definition: table_replication_connection_status.h:94
st_row_connect_status()
Definition: table_replication_connection_status.h:102
ulonglong last_heartbeat_timestamp
Definition: table_replication_connection_status.h:83
bool thread_id_is_null
Definition: table_replication_connection_status.h:80
ulonglong thread_id
Definition: table_replication_connection_status.h:79
bool source_uuid_is_null
Definition: table_replication_connection_status.h:78
uint last_error_message_length
Definition: table_replication_connection_status.h:88
char * received_transaction_set
Definition: table_replication_connection_status.h:84
uint channel_name_length
Definition: table_replication_connection_status.h:76
char queueing_trx[Gtid::MAX_TEXT_LENGTH+1]
Definition: table_replication_connection_status.h:96
uint last_error_number
Definition: table_replication_connection_status.h:86
ulonglong last_error_timestamp
Definition: table_replication_connection_status.h:89
bool group_name_is_null
Definition: table_replication_connection_status.h:74
uint queueing_trx_length
Definition: table_replication_connection_status.h:97
ulonglong count_received_heartbeats
Definition: table_replication_connection_status.h:82
char source_uuid[UUID_LENGTH]
Definition: table_replication_connection_status.h:77
ulonglong queueing_trx_immediate_commit_timestamp
Definition: table_replication_connection_status.h:99
Helpers to implement a performance schema table.
enum_rpl_yes_no
Definition: table_replication_applier_configuration.h:50