MySQL 26.7.0
Source Code Documentation
dd::upgrade::anonymous_namespace{server.cc}::MySQL_check Class Reference

Public Member Functions

bool check_tables (THD *thd, const char *schema_name)=delete
 Delete the overload taking the schema name as a const char*, to avoid creating unintended temporary dd::String_type objects. More...
 
bool check_all_schemas (THD *thd)
 
bool check_system_schemas (THD *thd)
 
bool repair_tables (THD *thd)
 

Private Member Functions

bool get_schema_tables (THD *thd, const dd::String_type &schema_name, dd::String_type &tables_list)
 
bool check_table (List< Ed_row >::iterator &it, const List< Ed_row >::iterator &end, bool repair)
 
bool verify_response (List< Ed_row > &rset, bool repair)
 
bool check_tables (THD *thd, const dd::String_type &schema_name)
 Returns true if something went wrong while retrieving the table list or executing CHECK TABLE statements. More...
 

Private Attributes

std::vector< dd::String_typealter_cmds
 
std::vector< dd::String_typerepairs
 
bool needs_repair = false
 
dd::String_type m_ddstrbuf
 

Member Function Documentation

◆ check_all_schemas()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::check_all_schemas ( THD thd)
inline

◆ check_system_schemas()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::check_system_schemas ( THD thd)
inline

◆ check_table()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::check_table ( List< Ed_row >::iterator &  it,
const List< Ed_row >::iterator &  end,
bool  repair 
)
inlineprivate

◆ check_tables() [1/2]

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::check_tables ( THD thd,
const char *  schema_name 
)
delete

Delete the overload taking the schema name as a const char*, to avoid creating unintended temporary dd::String_type objects.

◆ check_tables() [2/2]

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::check_tables ( THD thd,
const dd::String_type schema_name 
)
inlineprivate

Returns true if something went wrong while retrieving the table list or executing CHECK TABLE statements.

◆ get_schema_tables()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::get_schema_tables ( THD thd,
const dd::String_type schema_name,
dd::String_type tables_list 
)
inlineprivate

◆ repair_tables()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::repair_tables ( THD thd)
inline

◆ verify_response()

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::verify_response ( List< Ed_row > &  rset,
bool  repair 
)
inlineprivate

Member Data Documentation

◆ alter_cmds

std::vector<dd::String_type> dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::alter_cmds
private

◆ m_ddstrbuf

dd::String_type dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::m_ddstrbuf
private

◆ needs_repair

bool dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::needs_repair = false
private

◆ repairs

std::vector<dd::String_type> dd::upgrade::anonymous_namespace{server.cc}::MySQL_check::repairs
private

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