MySQL 8.0.40
Source Code Documentation
dd::upgrade_57::Upgrade_MDL_guard Class Reference

RAII to handle MDL locks while upgrading. More...

Public Member Functions

bool acquire_lock (const String_type &db_name, const String_type &table_name)
 
bool acquire_lock_tablespace (Tablespace_hash_set *tablespace_names)
 
 Upgrade_MDL_guard (THD *thd)
 
 ~Upgrade_MDL_guard ()
 

Private Attributes

MDL_ticketm_mdl_ticket_schema
 
MDL_ticketm_mdl_ticket_table
 
bool m_tablespace_lock
 
THDm_thd
 

Detailed Description

RAII to handle MDL locks while upgrading.

Constructor & Destructor Documentation

◆ Upgrade_MDL_guard()

dd::upgrade_57::Upgrade_MDL_guard::Upgrade_MDL_guard ( THD thd)
inline

◆ ~Upgrade_MDL_guard()

dd::upgrade_57::Upgrade_MDL_guard::~Upgrade_MDL_guard ( )
inline

Member Function Documentation

◆ acquire_lock()

bool dd::upgrade_57::Upgrade_MDL_guard::acquire_lock ( const String_type db_name,
const String_type table_name 
)
inline

◆ acquire_lock_tablespace()

bool dd::upgrade_57::Upgrade_MDL_guard::acquire_lock_tablespace ( Tablespace_hash_set tablespace_names)
inline

Member Data Documentation

◆ m_mdl_ticket_schema

MDL_ticket* dd::upgrade_57::Upgrade_MDL_guard::m_mdl_ticket_schema
private

◆ m_mdl_ticket_table

MDL_ticket* dd::upgrade_57::Upgrade_MDL_guard::m_mdl_ticket_table
private

◆ m_tablespace_lock

bool dd::upgrade_57::Upgrade_MDL_guard::m_tablespace_lock
private

◆ m_thd

THD* dd::upgrade_57::Upgrade_MDL_guard::m_thd
private

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