24#ifndef TABLE_RPL_ASYNC_CONNECTION_FAILOVER_MANAGED_H
25#define TABLE_RPL_ASYNC_CONNECTION_FAILOVER_MANAGED_H
118 bool read_all)
override;
175 int rnd_pos(
const void *pos)
override;
Abstraction for accessing JSON values irrespective of whether they are (started out as) binary JSON v...
Definition: json_dom.h:1168
An abstract PERFORMANCE_SCHEMA table.
Definition: pfs_engine_table.h:69
Class to hold information regarding a table to be created on behalf of a plugin.
Definition: plugin_table.h:39
Table PERFORMANCE_SCHEMA.TABLE_RPL_ASYNC_CONNECTION_FAILOVER_MANAGED.
Definition: table_rpl_async_connection_failover_managed.h:72
std::vector< RPL_FAILOVER_MANAGED_JSON_TUPLE > m_source_managed_list
Definition: table_rpl_async_connection_failover_managed.h:179
int make_row(uint index)
Stores current row (i.e.index) values for the table into m_row struct members.
Definition: table_rpl_async_connection_failover_managed.cc:193
static ha_rows num_rows
Definition: table_rpl_async_connection_failover_managed.h:182
void reset_position() override
Reset the cursor position to the beginning of the table.
Definition: table_rpl_async_connection_failover_managed.cc:107
int rnd_pos(const void *pos) override
Read row via random scan from position.
Definition: table_rpl_async_connection_failover_managed.cc:181
~table_rpl_async_connection_failover_managed() override
static PFS_engine_table * create(PFS_engine_table_share *tbs)
Open table function.
Definition: table_rpl_async_connection_failover_managed.cc:95
table_rpl_async_connection_failover_managed()
Definition: table_rpl_async_connection_failover_managed.cc:101
int rnd_init(bool scan) override
Initialize table for random read or scan.
Definition: table_rpl_async_connection_failover_managed.cc:120
int rnd_next() override
Read next row via random scan.
Definition: table_rpl_async_connection_failover_managed.cc:169
pos_t m_next_pos
Next position.
Definition: table_rpl_async_connection_failover_managed.h:102
static PFS_engine_table_share m_share
Table share.
Definition: table_rpl_async_connection_failover_managed.h:126
static ha_rows get_row_count()
Get the current number of rows read.
Definition: table_rpl_async_connection_failover_managed.cc:115
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_rpl_async_connection_failover_managed.cc:226
PFS_simple_index pos_t
Position of a cursor, for simple iterations.
Definition: table_rpl_async_connection_failover_managed.h:74
pos_t m_pos
Current position.
Definition: table_rpl_async_connection_failover_managed.h:99
static Plugin_table m_table_def
Table definition.
Definition: table_rpl_async_connection_failover_managed.h:93
static THR_LOCK m_table_lock
Table share lock.
Definition: table_rpl_async_connection_failover_managed.h:90
st_row_rpl_async_conn_failover_managed m_row
Current row.
Definition: table_rpl_async_connection_failover_managed.h:96
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
static constexpr int HOSTNAME_LENGTH
Definition: my_hostname.h:42
Common #defines and includes for file and socket I/O.
Common definition between mysql server & client.
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
Definition: buf0block_hint.cc:29
Performance schema tables (declarations).
#define CHANNEL_NAME_LENGTH
Definition: rpl_info.h:40
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:357
Position of a cursor, for simple iterations.
Definition: pfs_engine_table.h:557
Definition: thr_lock.h:138
A row in the table.
Definition: table_rpl_async_connection_failover_managed.h:58
char channel_name[CHANNEL_NAME_LENGTH]
Definition: table_rpl_async_connection_failover_managed.h:59
char managed_name[HOSTNAME_LENGTH]
Definition: table_rpl_async_connection_failover_managed.h:61
uint managed_name_length
Definition: table_rpl_async_connection_failover_managed.h:62
uint managed_type_length
Definition: table_rpl_async_connection_failover_managed.h:64
uint channel_name_length
Definition: table_rpl_async_connection_failover_managed.h:60
char managed_type[HOSTNAME_LENGTH]
Definition: table_rpl_async_connection_failover_managed.h:63
Json_wrapper configuration
Definition: table_rpl_async_connection_failover_managed.h:65
Helpers to implement a performance schema table.