diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-01-20 12:16:46 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-01-28 17:39:06 +0400 |
commit | c88fd54d171fdba6aad3f7e16a4060cca03143d3 (patch) | |
tree | 31926f4728935dd22d58b4525b466583d2ed7fe8 /sql/sql_parse.h | |
parent | 7ad742b265c290c0586ff4523b52a320ca05feea (diff) | |
download | mariadb-git-c88fd54d171fdba6aad3f7e16a4060cca03143d3.tar.gz |
Execute bootstrap in main thread
Bootstrap in a separate thread was introduced in 746f0b3b7 to workaround
OS/2 small stack size. OS/2 support was discontinued in 2006 and modern
operating systems have default stack size a few times larger than
default thread_stack and it is tunable.
Aim is to reduce usage of LOCK_thread_count and COND_thread_count.
Part of MDEV-15135.
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r-- | sql/sql_parse.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h index 1027872898a..f458c4279dd 100644 --- a/sql/sql_parse.h +++ b/sql/sql_parse.h @@ -99,10 +99,9 @@ void create_table_set_open_action_and_adjust_tables(LEX *lex); void mysql_init_multi_delete(LEX *lex); bool multi_delete_set_locks_and_link_aux_tables(LEX *lex); void create_table_set_open_action_and_adjust_tables(LEX *lex); -pthread_handler_t handle_bootstrap(void *arg); +void bootstrap(MYSQL_FILE *file); int mysql_execute_command(THD *thd); bool do_command(THD *thd); -void do_handle_bootstrap(THD *thd); bool dispatch_command(enum enum_server_command command, THD *thd, char* packet, uint packet_length, bool is_com_multi, bool is_next_command); |