MySQL  8.0.27
Source Code Documentation
Uncommitted_tables_guard Class Reference

Guard class which allows to invalidate TDC entries for specific tables/views. More...

#include <dd_sql_view.h>

Public Member Functions

 Uncommitted_tables_guard (THD *thd)
 
 ~Uncommitted_tables_guard ()
 
void add_table (TABLE_LIST *table)
 

Private Attributes

THDm_thd
 
Prealloced_array< TABLE_LIST *, 1 > m_uncommitted_tables
 

Detailed Description

Guard class which allows to invalidate TDC entries for specific tables/views.

We use it to get rid of TABLE_SHARE objects corresponding to tables/views which definitions are not committed yet (and possibly won't be!).

Constructor & Destructor Documentation

◆ Uncommitted_tables_guard()

Uncommitted_tables_guard::Uncommitted_tables_guard ( THD thd)
inline

◆ ~Uncommitted_tables_guard()

Uncommitted_tables_guard::~Uncommitted_tables_guard ( )

Member Function Documentation

◆ add_table()

void Uncommitted_tables_guard::add_table ( TABLE_LIST table)
inline

Member Data Documentation

◆ m_thd

THD* Uncommitted_tables_guard::m_thd
private

◆ m_uncommitted_tables

Prealloced_array<TABLE_LIST *, 1> Uncommitted_tables_guard::m_uncommitted_tables
private

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