Skip to content

Commit

Permalink
Workaround a assertion on shutdown.
Browse files Browse the repository at this point in the history
Something initiates purge, while all purge THDs are destroyed.
tpool::waitable_task.disable() would not allow the task to be executed anymore
  • Loading branch information
vaintroub committed Oct 13, 2021
1 parent 607de9c commit 78e023c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/srv/srv0srv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,7 @@ void srv_init_purge_tasks()

static void srv_shutdown_purge_tasks()
{
purge_coordinator_task.wait();
purge_coordinator_task.disable();
delete purge_coordinator_timer;
purge_coordinator_timer= nullptr;
purge_worker_task.wait();
Expand Down

0 comments on commit 78e023c

Please sign in to comment.