MDEV-26511 - Do not change purge thread count during bootstrap

Apparently, in bootstrap this could crash when creating new THDs
This commit is contained in:
Vladislav Vaintroub 2021-08-31 12:02:31 +02:00
parent e62120cec7
commit 1fcd8db776

View File

@ -2139,7 +2139,7 @@ ulint srv_get_task_queue_length()
void srv_purge_shutdown()
{
if (purge_sys.enabled()) {
if (!srv_fast_shutdown)
if (!srv_fast_shutdown && !opt_bootstrap)
srv_update_purge_thread_count(innodb_purge_threads_MAX);
while(!srv_purge_should_exit()) {
ut_a(!purge_sys.paused());