Commit 6f54a5ab authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-21544 instrument sync_array waits with tpool::wait_begin/end

threadpool has to know about long waits, to be able to create or wakeup
new threads, or it can become slow, if it just relies on maintainence
timer.
parent 28129cd4
......@@ -468,7 +468,9 @@ sync_array_wait_event(
#endif /* UNIV_DEBUG */
sync_array_exit(arr);
tpool::tpool_wait_begin();
os_event_wait_low(sync_cell_get_event(cell), cell->signal_count);
tpool::tpool_wait_end();
sync_array_free_cell(arr, cell);
......
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