Skip to content
Permalink
Browse files
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.
  • Loading branch information
vaintroub committed Jan 21, 2020
1 parent 28129cd commit 6f54a5a
Showing 1 changed file with 2 additions and 0 deletions.
@@ -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);

0 comments on commit 6f54a5a

Please sign in to comment.