MySQL 9.1.0
Source Code Documentation
|
Error handler class to convert ER_LOCK_DEADLOCK error to ER_WARN_I_S_SKIPPED_TABLE/TABLESPACE error. More...
#include <error_handler.h>
Public Member Functions | |
Info_schema_error_handler (THD *thd, const String *schema_name, const String *table_name) | |
Following are implementation of error handler to convert ER_LOCK_DEADLOCK error when executing I_S.TABLES and I_S.FILES system view. More... | |
Info_schema_error_handler (THD *thd, const String *tablespace_name) | |
bool | handle_condition (THD *, uint sql_errno, const char *, Sql_condition::enum_severity_level *, const char *) override |
Handle a sql condition. More... | |
bool | is_error_handled () const |
Private Types | |
enum class | Mdl_object_type { TABLE , TABLESPACE } |
Private Attributes | |
bool | m_can_deadlock |
const String * | m_schema_name |
const String * | m_table_name |
const String * | m_tablespace_name |
Mdl_object_type | m_object_type |
bool | m_error_handled = false |
Additional Inherited Members | |
Protected Member Functions inherited from Internal_error_handler | |
Internal_error_handler () | |
Internal_error_handler * | prev_internal_handler () const |
virtual | ~Internal_error_handler ()=default |
Error handler class to convert ER_LOCK_DEADLOCK error to ER_WARN_I_S_SKIPPED_TABLE/TABLESPACE error.
Handler is pushed for opening a table or acquiring a MDL lock on tables for INFORMATION_SCHEMA views (system views) operations.
|
strongprivate |
Info_schema_error_handler::Info_schema_error_handler | ( | THD * | thd, |
const String * | schema_name, | ||
const String * | table_name | ||
) |
Following are implementation of error handler to convert ER_LOCK_DEADLOCK error when executing I_S.TABLES and I_S.FILES system view.
|
overridevirtual |
Handle a sql condition.
This method can be implemented by a subclass to achieve any of the following:
This mechanism is similar to C++ try/throw/catch:
THD::push_internal_handler()
,my_error()
, which invokes my_message_sql()
,THD::pop_internal_handler()
.thd | the calling thread |
sql_errno | the error number for the condition raised. |
sqlstate | the SQLSTATE for the condition raised. |
level | the severity level for the condition raised. |
msg | the error message for the condition raised. |
Implements Internal_error_handler.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |