mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
Cover the srv_suspend_thread() call by the kernel mutex. This change was
forgotten when I reverted the kernel mutex split patch.
This commit is contained in:
parent
bd65e80c84
commit
50121bbb5e
1 changed files with 4 additions and 0 deletions
|
@ -3078,9 +3078,13 @@ srv_purge_thread(
|
||||||
srv_sync_log_buffer_in_background();
|
srv_sync_log_buffer_in_background();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutex_enter(&kernel_mutex);
|
||||||
|
|
||||||
/* Decrement the active count. */
|
/* Decrement the active count. */
|
||||||
srv_suspend_thread();
|
srv_suspend_thread();
|
||||||
|
|
||||||
|
mutex_exit(&kernel_mutex);
|
||||||
|
|
||||||
/* Free the thread local memory. */
|
/* Free the thread local memory. */
|
||||||
thr_local_free(os_thread_get_curr_id());
|
thr_local_free(os_thread_get_curr_id());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue