Commit 1fcd8db7 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

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

Apparently, in bootstrap this could crash when creating new THDs
parent e62120ce
...@@ -2139,7 +2139,7 @@ ulint srv_get_task_queue_length() ...@@ -2139,7 +2139,7 @@ ulint srv_get_task_queue_length()
void srv_purge_shutdown() void srv_purge_shutdown()
{ {
if (purge_sys.enabled()) { if (purge_sys.enabled()) {
if (!srv_fast_shutdown) if (!srv_fast_shutdown && !opt_bootstrap)
srv_update_purge_thread_count(innodb_purge_threads_MAX); srv_update_purge_thread_count(innodb_purge_threads_MAX);
while(!srv_purge_should_exit()) { while(!srv_purge_should_exit()) {
ut_a(!purge_sys.paused()); ut_a(!purge_sys.paused());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment