MySQL 9.1.0
Source Code Documentation
|
Bootstrap thread executes SQL statements. More...
#include <server.h>
Public Member Functions | |
Bootstrap_error_handler () | |
void | set_log_error (bool log_error) |
void | set_allowlist_errors (std::set< uint > &error_codes) |
void | clear_allowlist_errors () |
~Bootstrap_error_handler () | |
Static Public Attributes | |
static bool | m_log_error = true |
static bool | abort_on_error = false |
static std::set< uint > | m_allowlist_errors |
Static Private Member Functions | |
static void | my_message_bootstrap (uint error, const char *str, myf MyFlags) |
static void | set_abort_on_error (uint error) |
static bool | should_log_error (uint error) |
Private Attributes | |
ErrorHandlerFunctionPointer | m_old_error_handler_hook |
Bootstrap thread executes SQL statements.
Any error in the execution of SQL statements causes call to my_error(). At this moment, error handler hook is set to my_message_stderr. my_message_stderr() prints the error messages to standard error stream but it does not follow the standard error format. Further, the error status is not set in Diagnostics Area.
This class is to create RAII error handler hooks to be used when executing statements from bootstrap thread.
It will print the error in the standard error format. Diagnostics Area error status will be set to avoid asserts. Error will be handler by caller function.
dd::upgrade::Bootstrap_error_handler::Bootstrap_error_handler | ( | ) |
dd::upgrade::Bootstrap_error_handler::~Bootstrap_error_handler | ( | ) |
void dd::upgrade::Bootstrap_error_handler::clear_allowlist_errors | ( | ) |
|
staticprivate |
|
staticprivate |
void dd::upgrade::Bootstrap_error_handler::set_allowlist_errors | ( | std::set< uint > & | error_codes | ) |
void dd::upgrade::Bootstrap_error_handler::set_log_error | ( | bool | log_error | ) |
|
staticprivate |
|
static |
|
static |
|
static |
|
private |