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_db.cc | |
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_db.cc')
-rw-r--r-- | sql/sql_db.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc index 55c51dbe151..fbb62bd384a 100644 --- a/sql/sql_db.cc +++ b/sql/sql_db.cc @@ -882,7 +882,7 @@ mysql_rm_db_internal(THD *thd, const LEX_CSTRING *db, bool if_exists, bool silen lock_db_routines(thd, dbnorm)) goto exit; - if (!in_bootstrap && !rm_mysql_schema) + if (!thd->bootstrap && !rm_mysql_schema) { for (table= tables; table; table= table->next_local) { |