MySQL  8.0.15
Source Code Documentation
Open_tables_backup Class Reference

Storage for backup of Open_tables_state. More...

#include <sql_class.h>

Inheritance diagram for Open_tables_backup:
Open_tables_state

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
TABLEopen_tables
 List of regular tables in use by this thread. More...
 
TABLEtemporary_tables
 List of temporary tables used by this thread. More...
 
MYSQL_LOCKlock
 
MYSQL_LOCKextra_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_observerget_reprepare_observer () const
 
void push_reprepare_observer (Reprepare_observer *o)
 
Reprepare_observerpop_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 ()
 

Detailed Description

Storage for backup of Open_tables_state.

Must be used only to open system tables (TABLE_CATEGORY_SYSTEM and TABLE_CATEGORY_LOG).

Member Data Documentation

◆ mdl_system_tables_svp

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.


The documentation for this class was generated from the following file: