MySQL 8.4.3
Source Code Documentation
Foreign_key_parents_invalidator Class Reference

Helper class for keeping track for which tables we need to invalidate data-dictionary cache entries and performing such invalidation. More...

#include <sql_table.h>

Public Member Functions

void add (const char *db_name, const char *table_name, handlerton *hton, enum_invalidation_type invalidation_type=INVALIDATE_AND_CLOSE_TABLE)
 
void mark_for_reopen_if_added (const char *db_name, const char *table_name)
 
void invalidate (THD *thd)
 
const Parent_mapparents () const
 
bool is_empty () const
 
void clear ()
 

Private Types

enum  enum_invalidation_type { INVALIDATE_AND_CLOSE_TABLE , INVALIDATE_AND_MARK_FOR_REOPEN }
 
typedef std::map< std::pair< dd::String_type, dd::String_type >, std::pair< handlerton *, enum_invalidation_type > > Parent_map
 

Private Attributes

Parent_map m_parent_map
 

Detailed Description

Helper class for keeping track for which tables we need to invalidate data-dictionary cache entries and performing such invalidation.

Member Typedef Documentation

◆ Parent_map

Member Enumeration Documentation

◆ enum_invalidation_type

Enumerator
INVALIDATE_AND_CLOSE_TABLE 
INVALIDATE_AND_MARK_FOR_REOPEN 

Member Function Documentation

◆ add()

void Foreign_key_parents_invalidator::add ( const char *  db_name,
const char *  table_name,
handlerton hton,
enum_invalidation_type  invalidation_type = INVALIDATE_AND_CLOSE_TABLE 
)

◆ clear()

void Foreign_key_parents_invalidator::clear ( )
inline

◆ invalidate()

void Foreign_key_parents_invalidator::invalidate ( THD thd)

◆ is_empty()

bool Foreign_key_parents_invalidator::is_empty ( void  ) const
inline

◆ mark_for_reopen_if_added()

void Foreign_key_parents_invalidator::mark_for_reopen_if_added ( const char *  db_name,
const char *  table_name 
)

◆ parents()

const Parent_map & Foreign_key_parents_invalidator::parents ( ) const
inline

Member Data Documentation

◆ m_parent_map

Parent_map Foreign_key_parents_invalidator::m_parent_map
private

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