MySQL 8.4.3
Source Code Documentation
|
Storage for backup of Open_tables_state. More...
#include <sql_class.h>
Public Attributes | |
MDL_savepoint | mdl_system_tables_svp |
When we backup the open tables state to open a system table or tables, we want to save state of metadata locks which were acquired before the backup. More... | |
Public Attributes inherited from Open_tables_state | |
TABLE * | open_tables |
List of regular tables in use by this thread. More... | |
TABLE * | temporary_tables |
List of temporary tables used by this thread. More... | |
MYSQL_LOCK * | lock |
MYSQL_LOCK * | extra_lock |
enum enum_locked_tables_mode | locked_tables_mode |
uint | state_flags |
Additional Inherited Members | |
Public Types inherited from Open_tables_state | |
enum | enum_flags { BACKUPS_AVAIL = (1U << 0) , SYSTEM_TABLES = (1U << 1) } |
Public Member Functions inherited from Open_tables_state | |
Reprepare_observer * | get_reprepare_observer () const |
void | push_reprepare_observer (Reprepare_observer *o) |
Reprepare_observer * | pop_reprepare_observer () |
void | reset_reprepare_observers () |
Open_tables_state () | |
This constructor initializes Open_tables_state instance which can only be used as backup storage. More... | |
void | set_open_tables_state (Open_tables_state *state) |
void | reset_open_tables_state () |
Storage for backup of Open_tables_state.
Must be used only to open system tables (TABLE_CATEGORY_SYSTEM and TABLE_CATEGORY_LOG).
MDL_savepoint Open_tables_backup::mdl_system_tables_svp |
When we backup the open tables state to open a system table or tables, we want to save state of metadata locks which were acquired before the backup.
It is used to release metadata locks on system tables after they are no longer used.