mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
MDEV-10291 : Fix race condition in bootstrap
main thread may destroy mutexes that bootstrap is using in THD destructor.
This commit is contained in:
parent
6f42c3c5a4
commit
1b4f694adf
1 changed files with 2 additions and 1 deletions
|
|
@ -1085,9 +1085,10 @@ void do_handle_bootstrap(THD *thd)
|
|||
handle_bootstrap_impl(thd);
|
||||
|
||||
end:
|
||||
in_bootstrap= FALSE;
|
||||
delete thd;
|
||||
|
||||
mysql_mutex_lock(&LOCK_thread_count);
|
||||
in_bootstrap = FALSE;
|
||||
mysql_cond_broadcast(&COND_thread_count);
|
||||
mysql_mutex_unlock(&LOCK_thread_count);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue