25#ifndef TABLE_REPLICATION_APPLIER_STATUS_BY_WORKER_H
26#define TABLE_REPLICATION_APPLIER_STATUS_BY_WORKER_H
56#ifndef ENUM_RPL_YES_NO
57#define ENUM_RPL_YES_NO
223 bool read_all)
override;
237 int rnd_pos(
const void *pos)
override;
Definition: pfs_engine_table.h:301
Definition: pfs_engine_table.h:268
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:70
Definition: table_replication_applier_status_by_worker.h:155
PFS_index_rpl_applier_status_by_worker_by_channel()
Definition: table_replication_applier_status_by_worker.h:157
PFS_key_name m_key_1
Definition: table_replication_applier_status_by_worker.h:168
bool match(Master_info *mi) override
Definition: table_replication_applier_status_by_worker.cc:116
~PFS_index_rpl_applier_status_by_worker_by_channel() override=default
PFS_key_worker_id m_key_2
Definition: table_replication_applier_status_by_worker.h:169
Definition: table_replication_applier_status_by_worker.h:173
PFS_key_thread_id m_key
Definition: table_replication_applier_status_by_worker.h:184
~PFS_index_rpl_applier_status_by_worker_by_thread() override=default
bool match(Master_info *mi) override
Definition: table_replication_applier_status_by_worker.cc:163
PFS_index_rpl_applier_status_by_worker_by_thread()
Definition: table_replication_applier_status_by_worker.h:175
Definition: table_replication_applier_status_by_worker.h:139
~PFS_index_rpl_applier_status_by_worker() override=default
virtual bool match(Master_info *mi)=0
virtual bool match(Master_info *mi, Slave_worker *w)=0
PFS_index_rpl_applier_status_by_worker(PFS_engine_key *key)
Definition: table_replication_applier_status_by_worker.h:141
PFS_index_rpl_applier_status_by_worker(PFS_engine_key *key_1, PFS_engine_key *key_2)
Definition: table_replication_applier_status_by_worker.h:144
Definition: table_helper.h:1548
Definition: table_helper.h:1278
Definition: table_helper.h:1345
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:40
Definition: rpl_rli_pdb.h:498
Table PERFORMANCE_SCHEMA.replication_applier_status_by_worker.
Definition: table_replication_applier_status_by_worker.h:188
pos_replication_applier_status_by_worker pos_t
Definition: table_replication_applier_status_by_worker.h:189
int rnd_next() override
Fetch the next row in this cursor.
Definition: table_replication_applier_status_by_worker.cc:243
static Plugin_table m_table_def
Table definition.
Definition: table_replication_applier_status_by_worker.h:204
~table_replication_applier_status_by_worker() override
static PFS_engine_table * create(PFS_engine_table_share *)
Definition: table_replication_applier_status_by_worker.cc:219
static THR_LOCK m_table_lock
Table share lock.
Definition: table_replication_applier_status_by_worker.h:202
PFS_index_rpl_applier_status_by_worker * m_opened_index
Definition: table_replication_applier_status_by_worker.h:243
static ha_rows get_row_count()
Definition: table_replication_applier_status_by_worker.cc:236
pos_t m_next_pos
Next position.
Definition: table_replication_applier_status_by_worker.h:211
int index_init(uint idx, bool sorted) override
Definition: table_replication_applier_status_by_worker.cc:330
void populate_trx_info(Trx_monitoring_info const &applying_trx, Trx_monitoring_info const &last_applied_trx)
Auxiliary function to populate the transaction information fields.
Definition: table_replication_applier_status_by_worker.cc:545
pos_t m_pos
Current position.
Definition: table_replication_applier_status_by_worker.h:209
st_row_worker m_row
current row.
Definition: table_replication_applier_status_by_worker.h:207
table_replication_applier_status_by_worker()
Definition: table_replication_applier_status_by_worker.cc:225
static PFS_engine_table_share m_share
Table share.
Definition: table_replication_applier_status_by_worker.h:231
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_replication_applier_status_by_worker.cc:231
int index_next() override
Find key in index, read record.
Definition: table_replication_applier_status_by_worker.cc:349
int make_row(Slave_worker *)
Definition: table_replication_applier_status_by_worker.cc:480
int rnd_pos(const void *pos) override
Fetch a row by position.
Definition: table_replication_applier_status_by_worker.cc:291
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_replication_applier_status_by_worker.cc:573
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1140
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
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
static const int MAX_TEXT_LENGTH
The maximal length of the textual representation of a SID, not including the terminating '\0'.
Definition: rpl_gtid.h:1101
Position of a double cursor, for iterations using 2 nested loops.
Definition: pfs_engine_table.h:602
uint m_index_1
Outer index.
Definition: pfs_engine_table.h:604
uint m_index_2
Current index within index_1.
Definition: pfs_engine_table.h:606
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Definition: thr_lock.h:139
Structure to store the GTID and timing information.
Definition: rpl_gtid.h:1161
An instrumented mutex structure.
Definition: mysql_mutex_bits.h:50
Position in table replication_applier_status_by_worker.
Definition: table_replication_applier_status_by_worker.h:115
void next_channel()
Definition: table_replication_applier_status_by_worker.h:125
bool has_more_channels(uint num)
Definition: table_replication_applier_status_by_worker.h:123
pos_replication_applier_status_by_worker()
Definition: table_replication_applier_status_by_worker.h:116
void set_channel_after(const pos_replication_applier_status_by_worker *other)
Definition: table_replication_applier_status_by_worker.h:132
void reset()
Definition: table_replication_applier_status_by_worker.h:118
void next_worker()
Definition: table_replication_applier_status_by_worker.h:130
Definition: table_replication_applier_status_by_worker.h:69
char channel_name[CHANNEL_NAME_LENGTH]
Definition: table_replication_applier_status_by_worker.h:70
ulonglong applying_trx_start_apply_timestamp
Definition: table_replication_applier_status_by_worker.h:95
ulonglong last_error_timestamp
Definition: table_replication_applier_status_by_worker.h:84
ulonglong last_applied_trx_immediate_commit_timestamp
Definition: table_replication_applier_status_by_worker.h:88
ulonglong applying_trx_last_retry_timestamp
Definition: table_replication_applier_status_by_worker.h:105
char applying_trx[Gtid::MAX_TEXT_LENGTH+1]
Definition: table_replication_applier_status_by_worker.h:91
char last_applied_trx_last_retry_err_msg[MAX_SLAVE_ERRMSG]
Definition: table_replication_applier_status_by_worker.h:98
char applying_trx_last_retry_err_msg[MAX_SLAVE_ERRMSG]
Definition: table_replication_applier_status_by_worker.h:103
ulonglong worker_id
Definition: table_replication_applier_status_by_worker.h:77
ulonglong thread_id
Definition: table_replication_applier_status_by_worker.h:78
uint last_applied_trx_length
Definition: table_replication_applier_status_by_worker.h:86
ulonglong last_applied_trx_last_retry_timestamp
Definition: table_replication_applier_status_by_worker.h:100
uint last_error_number
Definition: table_replication_applier_status_by_worker.h:81
ulong applying_trx_retries_count
Definition: table_replication_applier_status_by_worker.h:101
ulonglong last_applied_trx_end_apply_timestamp
Definition: table_replication_applier_status_by_worker.h:90
uint applying_trx_last_retry_err_number
Definition: table_replication_applier_status_by_worker.h:102
uint channel_name_length
Definition: table_replication_applier_status_by_worker.h:71
ulonglong last_applied_trx_start_apply_timestamp
Definition: table_replication_applier_status_by_worker.h:89
ulonglong last_applied_trx_original_commit_timestamp
Definition: table_replication_applier_status_by_worker.h:87
ulong last_applied_trx_retries_count
Definition: table_replication_applier_status_by_worker.h:96
uint applying_trx_last_retry_err_msg_length
Definition: table_replication_applier_status_by_worker.h:104
uint last_applied_trx_last_retry_err_msg_length
Definition: table_replication_applier_status_by_worker.h:99
uint applying_trx_length
Definition: table_replication_applier_status_by_worker.h:92
uint last_error_message_length
Definition: table_replication_applier_status_by_worker.h:83
char last_error_message[MAX_SLAVE_ERRMSG]
Definition: table_replication_applier_status_by_worker.h:82
uint last_applied_trx_last_retry_err_number
Definition: table_replication_applier_status_by_worker.h:97
ulonglong applying_trx_original_commit_timestamp
Definition: table_replication_applier_status_by_worker.h:93
ulonglong applying_trx_immediate_commit_timestamp
Definition: table_replication_applier_status_by_worker.h:94
enum_rpl_yes_no service_state
Definition: table_replication_applier_status_by_worker.h:80
uint thread_id_is_null
Definition: table_replication_applier_status_by_worker.h:79
char last_applied_trx[Gtid::MAX_TEXT_LENGTH+1]
Definition: table_replication_applier_status_by_worker.h:85
Helpers to implement a performance schema table.
enum_rpl_yes_no
Definition: table_replication_applier_configuration.h:50
unsigned int uint
Definition: uca9-dump.cc:75