MySQL 8.0.39
Source Code Documentation
dd::Open_dictionary_tables_ctx Class Reference

Auxiliary class for opening dictionary tables. More...

#include <transaction_impl.h>

Public Member Functions

 Open_dictionary_tables_ctx (THD *thd, thr_lock_type lock_type)
 
 ~Open_dictionary_tables_ctx ()
 
Raw_tableget_table (const String_type &name) const
 
template<typename T >
Raw_tableget_table () const
 
template<typename X >
void register_tables ()
 
template<typename X >
void add_table ()
 
bool open_tables ()
 Open all the DD tables in list Open_dictionary_tables_ctx::m_tables. More...
 
void add_table (const String_type &name)
 
THDget_thd () const
 
void mark_ignore_global_read_lock ()
 Ignore global read lock when opening the tables. More...
 

Private Types

typedef std::map< String_type, Raw_table * > Object_table_map
 

Private Attributes

THDm_thd
 
thr_lock_type m_lock_type
 
bool m_ignore_global_read_lock
 
Object_table_map m_tables
 

Detailed Description

Auxiliary class for opening dictionary tables.

Member Typedef Documentation

◆ Object_table_map

Constructor & Destructor Documentation

◆ Open_dictionary_tables_ctx()

dd::Open_dictionary_tables_ctx::Open_dictionary_tables_ctx ( THD thd,
thr_lock_type  lock_type 
)
inline

◆ ~Open_dictionary_tables_ctx()

dd::Open_dictionary_tables_ctx::~Open_dictionary_tables_ctx ( )

Member Function Documentation

◆ add_table() [1/2]

template<typename X >
void dd::Open_dictionary_tables_ctx::add_table ( )
inline

◆ add_table() [2/2]

void dd::Open_dictionary_tables_ctx::add_table ( const String_type name)

◆ get_table() [1/2]

template<typename T >
Raw_table * dd::Open_dictionary_tables_ctx::get_table ( ) const
inline

◆ get_table() [2/2]

Raw_table * dd::Open_dictionary_tables_ctx::get_table ( const String_type name) const

◆ get_thd()

THD * dd::Open_dictionary_tables_ctx::get_thd ( ) const
inline

◆ mark_ignore_global_read_lock()

void dd::Open_dictionary_tables_ctx::mark_ignore_global_read_lock ( )
inline

Ignore global read lock when opening the tables.

◆ open_tables()

bool dd::Open_dictionary_tables_ctx::open_tables ( )

Open all the DD tables in list Open_dictionary_tables_ctx::m_tables.

Returns
true - On failure and error is reported.
false - On success.

◆ register_tables()

template<typename X >
void dd::Open_dictionary_tables_ctx::register_tables ( )
inline

Member Data Documentation

◆ m_ignore_global_read_lock

bool dd::Open_dictionary_tables_ctx::m_ignore_global_read_lock
private

◆ m_lock_type

thr_lock_type dd::Open_dictionary_tables_ctx::m_lock_type
private

◆ m_tables

Object_table_map dd::Open_dictionary_tables_ctx::m_tables
private

◆ m_thd

THD* dd::Open_dictionary_tables_ctx::m_thd
private

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