MySQL 8.0.40
Source Code Documentation
|
Classes | |
class | Command_iterator |
Abstract interface to reading bootstrap commands. More... | |
class | File_command_iterator |
File bootstrap command reader. More... | |
struct | handle_bootstrap_args |
Typedefs | |
typedef bool(* | bootstrap_functor) (THD *thd) |
Functions | |
static char * | mysql_file_fgets_fn (char *buffer, size_t size, MYSQL_FILE *input, int *error) |
static void | bootstrap_log_error (const char *message) |
static int | process_iterator (THD *thd, Command_iterator *it, bool enforce_invariants) |
static bool | handle_bootstrap_impl (handle_bootstrap_args *args) |
static void * | handle_bootstrap (void *arg) |
Execute commands from bootstrap_file. More... | |
bool | run_bootstrap_thread (const char *file_name, MYSQL_FILE *file, bootstrap_functor boot_handler, enum_thread_type thread_type) |
Create a thread to execute all commands from the submitted file. More... | |
typedef bool(* bootstrap::bootstrap_functor) (THD *thd) |
|
static |
|
static |
Execute commands from bootstrap_file.
Used when creating the initial grant tables.
|
static |
|
static |
|
static |
bool bootstrap::run_bootstrap_thread | ( | const char * | file_name, |
MYSQL_FILE * | file, | ||
bootstrap_functor | boot_handler, | ||
enum_thread_type | thread_type | ||
) |
Create a thread to execute all commands from the submitted file.
By providing an explicit bootstrap handler functor, the default behavior of reading and executing SQL commands from the submitted file may be customized.
file_name | Name of the init file with SQL statements, if non-null |
file | Handle of the init file with SQL statements, if non-null |
boot_handler | Optional functor for customized handling |
thread_type | Bootstrap thread type, server initialize or init file |