MySQL 5.6.14 Source Code Document
|
#include <sql_base.h>
Public Types | |
enum | enum_open_table_action { OT_NO_ACTION = 0, OT_BACKOFF_AND_RETRY, OT_REOPEN_TABLES, OT_DISCOVER, OT_REPAIR } |
Public Member Functions | |
Open_table_context (THD *thd, uint flags) | |
bool | recover_from_failed_open () |
bool | request_backoff_action (enum_open_table_action action_arg, TABLE_LIST *table) |
bool | can_recover_from_failed_open () const |
const MDL_savepoint & | start_of_statement_svp () const |
ulong | get_timeout () const |
uint | get_flags () const |
void | set_has_protection_against_grl () |
bool | has_protection_against_grl () const |
A context of open_tables() function, used to recover from a failed open_table() or open_routine() attempt.
Definition at line 481 of file sql_base.h.
|
inline |
Set flag indicating that we have already acquired metadata lock protecting this statement against GRL while opening tables.
Definition at line 523 of file sql_base.h.
|
inline |
When doing a back-off, we close all tables acquired by this statement. Return an MDL savepoint taken at the beginning of the statement, so that we can rollback to it before waiting on locks.
Definition at line 507 of file sql_base.h.