MySQL 8.0.39
Source Code Documentation
Table_ddl_hton_notification_guard Class Reference

Auxiliary class implementing RAII principle for getting permission for/ notification about finished DDL statements from interested storage engines. More...

#include <sql_table.h>

Public Member Functions

 Table_ddl_hton_notification_guard (THD *thd, const MDL_key *key, ha_ddl_type ddl_type, const char *old_db_name=nullptr, const char *old_table_name=nullptr, const char *new_db_name=nullptr, const char *new_table_name=nullptr) noexcept
 
bool notify () noexcept
 
 ~Table_ddl_hton_notification_guard ()
 

Private Attributes

bool m_hton_notified
 
THDm_thd
 
const MDL_key m_key
 
const ha_ddl_type m_ddl_type
 
const char * m_old_db_name
 
const char * m_old_table_name
 
const char * m_new_db_name
 
const char * m_new_table_name
 

Detailed Description

Auxiliary class implementing RAII principle for getting permission for/ notification about finished DDL statements from interested storage engines.

See also
handlerton::ha_notify_table_ddl for details.

Constructor & Destructor Documentation

◆ Table_ddl_hton_notification_guard()

Table_ddl_hton_notification_guard::Table_ddl_hton_notification_guard ( THD thd,
const MDL_key key,
ha_ddl_type  ddl_type,
const char *  old_db_name = nullptr,
const char *  old_table_name = nullptr,
const char *  new_db_name = nullptr,
const char *  new_table_name = nullptr 
)
inlinenoexcept

◆ ~Table_ddl_hton_notification_guard()

Table_ddl_hton_notification_guard::~Table_ddl_hton_notification_guard ( )
inline

Member Function Documentation

◆ notify()

bool Table_ddl_hton_notification_guard::notify ( )
inlinenoexcept

Member Data Documentation

◆ m_ddl_type

const ha_ddl_type Table_ddl_hton_notification_guard::m_ddl_type
private

◆ m_hton_notified

bool Table_ddl_hton_notification_guard::m_hton_notified
private

◆ m_key

const MDL_key Table_ddl_hton_notification_guard::m_key
private

◆ m_new_db_name

const char* Table_ddl_hton_notification_guard::m_new_db_name
private

◆ m_new_table_name

const char* Table_ddl_hton_notification_guard::m_new_table_name
private

◆ m_old_db_name

const char* Table_ddl_hton_notification_guard::m_old_db_name
private

◆ m_old_table_name

const char* Table_ddl_hton_notification_guard::m_old_table_name
private

◆ m_thd

THD* Table_ddl_hton_notification_guard::m_thd
private

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