#include <rpl_gtid_persist.h>
|
| Gtid_table_access_context () |
|
| ~Gtid_table_access_context () override=default |
|
bool | init (THD **thd, TABLE **table, bool is_write) |
| Initialize the gtid_executed table access context as following: More...
|
|
bool | deinit (THD *thd, TABLE *table, bool error, bool need_commit) |
| De-initialize the gtid_executed table access context as following: More...
|
|
void | before_open (THD *thd) override |
| Prepares before opening table. More...
|
|
THD * | create_thd () |
| Creates a new thread in the bootstrap process or in the mysqld startup, a thread is created in order to be able to access a table. More...
|
|
void | drop_thd (THD *thd) |
|
virtual | ~System_table_access ()=default |
|
bool | open_table (THD *thd, const LEX_CSTRING dbstr, const LEX_CSTRING tbstr, uint max_num_field, enum thr_lock_type lock_type, TABLE **table, Open_tables_backup *backup) |
| Opens and locks a system table. More...
|
|
bool | open_table (THD *thd, std::string dbstr, std::string tbstr, uint max_num_field, enum thr_lock_type lock_type, TABLE **table, Open_tables_backup *backup) |
| Opens and locks a system table. More...
|
|
bool | close_table (THD *thd, TABLE *table, Open_tables_backup *backup, bool error, bool need_commit) |
| Commits the changes, unlocks the table and closes it. More...
|
|
THD * | create_thd () |
| Creates a new thread in the bootstrap process or in the mysqld startup, a thread is created in order to be able to access a table. More...
|
|
void | drop_thd (THD *thd) |
| Destroys the created thread and restores the system_thread information. More...
|
|
◆ Gtid_table_access_context() [1/2]
Gtid_table_access_context::Gtid_table_access_context |
( |
| ) |
|
|
inline |
◆ ~Gtid_table_access_context()
Gtid_table_access_context::~Gtid_table_access_context |
( |
| ) |
|
|
overridedefault |
◆ Gtid_table_access_context() [2/2]
◆ before_open()
void Gtid_table_access_context::before_open |
( |
THD * |
thd | ) |
|
|
overridevirtual |
Prepares before opening table.
- Parameters
-
[in] | thd | Thread requesting to open the table |
Implements System_table_access.
◆ create_thd()
THD * Gtid_table_access_context::create_thd |
( |
| ) |
|
Creates a new thread in the bootstrap process or in the mysqld startup, a thread is created in order to be able to access a table.
And reset a new "statement".
- Returns
- THD* Pointer to thread structure
◆ deinit()
bool Gtid_table_access_context::deinit |
( |
THD * |
thd, |
|
|
TABLE * |
table, |
|
|
bool |
error, |
|
|
bool |
need_commit |
|
) |
| |
De-initialize the gtid_executed table access context as following:
- Close the table
- Re-enable binlog if needed
- Destroy the created THD if needed.
- Parameters
-
thd | Thread requesting to close the table |
table | Table to be closed |
error | If there was an error while updating the table |
need_commit | Need to commit current transaction if it is true |
- Return values
-
◆ drop_thd()
void Gtid_table_access_context::drop_thd |
( |
THD * |
thd | ) |
|
◆ init()
bool Gtid_table_access_context::init |
( |
THD ** |
thd, |
|
|
TABLE ** |
table, |
|
|
bool |
is_write |
|
) |
| |
Initialize the gtid_executed table access context as following:
- Create a new THD if current_thd is NULL
- Disable binlog temporarily if we are going to modify the table
- Open and lock a table.
- Parameters
-
[in,out] | thd | Thread requesting to open the table |
[out] | table | We will store the open table here |
[in] | is_write | If true, the access will be for modifying the table |
- Return values
-
◆ operator=()
◆ DB_NAME
Initial value:= {
#define STRING_WITH_LEN(X)
Definition: m_string.h:315
◆ m_backup
◆ m_drop_thd_object
THD* Gtid_table_access_context::m_drop_thd_object |
|
private |
◆ m_is_write
bool Gtid_table_access_context::m_is_write |
|
private |
◆ m_skip_readonly_set
bool Gtid_table_access_context::m_skip_readonly_set {false} |
|
private |
◆ m_tmp_disable_binlog__save_options
ulonglong Gtid_table_access_context::m_tmp_disable_binlog__save_options |
|
private |
◆ TABLE_NAME
const LEX_CSTRING Gtid_table_access_context::TABLE_NAME |
|
static |
The documentation for this class was generated from the following files: