1
0
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:
Sergey Vojtovich
2019-02-12 23:07:51 +04:00
parent ffa4677c09
commit 4d5f85a3ec
4 changed files with 8 additions and 11 deletions

View File

@ -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);
}