23#ifndef RPL_INFO_TABLE_ACCESS_H
24#define RPL_INFO_TABLE_ACCESS_H
Storage for backup of Open_tables_state.
Definition: sql_class.h:693
Definition: rpl_info_table_access.h:38
THD * create_thd()
Creates a new thread if necessary.
Definition: rpl_info_table_access.cc:367
bool thd_created
Definition: rpl_info_table_access.h:66
bool load_info_values(uint max_num_field, Field **fields, Rpl_info_values *field_values)
Reads information from a sequence of fields into a set of LEX_STRING structures, where the sequence o...
Definition: rpl_info_table_access.cc:296
Rpl_info_table_access(const Rpl_info_table_access &info)
enum enum_return_id find_info(Rpl_info_values *field_values, TABLE *table)
Positions the internal pointer of table according to the primary key.
Definition: rpl_info_table_access.cc:134
void drop_thd(THD *thd)
Destroys the created thread if necessary and restores the system_thread information.
Definition: rpl_info_table_access.cc:390
bool close_table(THD *thd, TABLE *table, Open_tables_backup *backup, bool error)
Commits the changes, unlocks the table and closes it.
Definition: rpl_info_table_access.cc:100
bool store_info_values(uint max_num_field, Field **fields, Rpl_info_values *field_values)
Stores information from a sequence of fields into a set of LEX_STRING structures, where the sequence ...
Definition: rpl_info_table_access.cc:334
bool count_info(TABLE *table, ulonglong *counter)
Returns the number of entries in table.
Definition: rpl_info_table_access.cc:250
Rpl_info_table_access()
Definition: rpl_info_table_access.h:40
Rpl_info_table_access & operator=(const Rpl_info_table_access &info)
void before_open(THD *thd) override
Prepares before opening table.
Definition: rpl_info_table_access.cc:53
enum enum_return_id scan_info(TABLE *table, uint instance)
Positions the internal pointer of table to the n-instance row.
Definition: rpl_info_table_access.cc:197
~Rpl_info_table_access() override=default
std::pair< bool, bool > is_table_in_use(TABLE *table)
Returns if the table is being used, meaning it contains at least a line or some concurrency related e...
Definition: rpl_info_table_access.cc:269
Definition: rpl_info_values.h:31
A base class for accessing a system table.
Definition: rpl_table_access.h:40
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
unsigned long long int ulonglong
Definition: my_inttypes.h:56
static bool backup
Definition: myisampack.cc:198
uint counter
Definition: mysqlimport.cc:58
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
enum_return_id
Definition: rpl_info_table_access.h:36
@ FOUND_ID
Definition: rpl_info_table_access.h:36
@ ERROR_ID
Definition: rpl_info_table_access.h:36
@ NOT_FOUND_ID
Definition: rpl_info_table_access.h:36