22#ifndef RPL_INFO_TABLE_ACCESS_H
23#define RPL_INFO_TABLE_ACCESS_H
Storage for backup of Open_tables_state.
Definition: sql_class.h:693
Definition: rpl_info_table_access.h:37
THD * create_thd()
Creates a new thread if necessary.
Definition: rpl_info_table_access.cc:366
bool thd_created
Definition: rpl_info_table_access.h:65
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:295
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:133
void drop_thd(THD *thd)
Destroys the created thread if necessary and restores the system_thread information.
Definition: rpl_info_table_access.cc:389
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:99
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:333
bool count_info(TABLE *table, ulonglong *counter)
Returns the number of entries in table.
Definition: rpl_info_table_access.cc:249
Rpl_info_table_access()
Definition: rpl_info_table_access.h:39
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:52
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:196
~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:268
Definition: rpl_info_values.h:30
A base class for accessing a system table.
Definition: rpl_table_access.h:39
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
unsigned long long int ulonglong
Definition: my_inttypes.h:55
static bool backup
Definition: myisampack.cc:197
uint counter
Definition: mysqlimport.cc:57
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
enum_return_id
Definition: rpl_info_table_access.h:35
@ FOUND_ID
Definition: rpl_info_table_access.h:35
@ ERROR_ID
Definition: rpl_info_table_access.h:35
@ NOT_FOUND_ID
Definition: rpl_info_table_access.h:35