Commit 78e023c2 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Workaround a assertion on shutdown.

Something initiates purge, while all purge THDs are destroyed.
tpool::waitable_task.disable() would not allow the task to be executed anymore
parent 607de9c7
...@@ -1973,7 +1973,7 @@ void srv_init_purge_tasks() ...@@ -1973,7 +1973,7 @@ void srv_init_purge_tasks()
static void srv_shutdown_purge_tasks() static void srv_shutdown_purge_tasks()
{ {
purge_coordinator_task.wait(); purge_coordinator_task.disable();
delete purge_coordinator_timer; delete purge_coordinator_timer;
purge_coordinator_timer= nullptr; purge_coordinator_timer= nullptr;
purge_worker_task.wait(); purge_worker_task.wait();
......
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