mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Bootstrap cleanups
Remove unused key_thread_bootstrap. No more global bootstrap_error: it is return value of bootstrap() instead.
This commit is contained in:
@ -979,8 +979,9 @@ static char *fgets_fn(char *buffer, size_t size, fgets_input_t input, int *error
|
||||
}
|
||||
|
||||
|
||||
void bootstrap(MYSQL_FILE *file)
|
||||
int bootstrap(MYSQL_FILE *file)
|
||||
{
|
||||
int bootstrap_error= 0;
|
||||
DBUG_ENTER("handle_bootstrap");
|
||||
|
||||
THD *thd= new THD(next_thread_id());
|
||||
@ -1105,7 +1106,7 @@ void bootstrap(MYSQL_FILE *file)
|
||||
thd->lex->restore_set_statement_var();
|
||||
}
|
||||
delete thd;
|
||||
DBUG_VOID_RETURN;
|
||||
DBUG_RETURN(bootstrap_error);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user