Skip to content

Commit 1fcd8db

Browse files
committed
MDEV-26511 - Do not change purge thread count during bootstrap
Apparently, in bootstrap this could crash when creating new THDs
1 parent e62120c commit 1fcd8db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/srv/srv0srv.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2139,7 +2139,7 @@ ulint srv_get_task_queue_length()
21392139
void srv_purge_shutdown()
21402140
{
21412141
if (purge_sys.enabled()) {
2142-
if (!srv_fast_shutdown)
2142+
if (!srv_fast_shutdown && !opt_bootstrap)
21432143
srv_update_purge_thread_count(innodb_purge_threads_MAX);
21442144
while(!srv_purge_should_exit()) {
21452145
ut_a(!purge_sys.paused());

0 commit comments

Comments
 (0)