MySQL 8.4.2
Source Code Documentation
|
Custom error handling for histogram updates from the background thread. More...
Public Member Functions | |
bool | handle_condition (THD *, uint, const char *, Sql_condition::enum_severity_level *level, const char *) override |
Handle a sql condition. More... | |
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 |
Custom error handling for histogram updates from the background thread.
Downgrades all errors to warnings. This is done for two reasons:
1) Because errors during background histogram updates are mostly ignorable, i.e., it is not critical that the user does something if histogram statistics fail to be updated.
2) We wish to throttle error log entries from background histogram updates, and this is currently only supported for a priority level of warnings.
|
inlineoverridevirtual |
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.