Commit fb70bb44 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-29513 avoid useless os_thread_sleep() during srv_purge_shutdown()

use waitable_task.wait() function to wait for the end of previous purge
parent bc12478a
......@@ -2052,7 +2052,7 @@ void srv_purge_shutdown()
while(!srv_purge_should_exit()) {
ut_a(!purge_sys.paused());
srv_wake_purge_thread_if_not_active();
os_thread_sleep(1000);
purge_coordinator_task.wait();
}
purge_sys.coordinator_shutdown();
srv_shutdown_purge_tasks();
......
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