MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Open_table_context Class Reference

#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_savepointstart_of_statement_svp () const
ulong get_timeout () const
uint get_flags () const
void set_has_protection_against_grl ()
bool has_protection_against_grl () const

Detailed Description

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.

Member Function Documentation

void Open_table_context::set_has_protection_against_grl ( )
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.

Here is the caller graph for this function:

const MDL_savepoint& Open_table_context::start_of_statement_svp ( ) const
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.

Here is the caller graph for this function:


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