My Project
Public Member Functions
Sql_handler_lock_error_handler Class Reference

List of all members.

Public Member Functions

virtual bool handle_condition (THD *thd, uint sql_errno, const char *sqlstate, Sql_condition::enum_warning_level level, const char *msg, Sql_condition **cond_hdl)
bool need_reopen () const
void init ()

Detailed Description

A helper class to process an error from mysql_lock_tables(). HANDLER READ statement's attempt to lock the subject table may get aborted if there is a pending DDL. In that case we close the table, reopen it, and try to read again. This is implicit and obscure, since HANDLER position is lost in the process, but it's the legacy server behaviour we should preserve.


Member Function Documentation

bool Sql_handler_lock_error_handler::handle_condition ( THD *  thd,
uint  sql_errno,
const char *  sqlstate,
Sql_condition::enum_warning_level  level,
const char *  msg,
Sql_condition **  cond_hdl 
) [virtual]

Handle an error from mysql_lock_tables(). Ignore ER_LOCK_ABORTED errors.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines