mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
Add a debug assertion for the case where the waiting thread is being woken
up because of a lock wait timeout.
This commit is contained in:
parent
7b26e1871a
commit
de31f61f2f
1 changed files with 2 additions and 0 deletions
|
@ -1775,6 +1775,8 @@ srv_release_mysql_thread_if_suspended(
|
|||
|
||||
if (!thr_get_trx(thr)->lock_wait_timeout) {
|
||||
srv_sys_mutex_enter();
|
||||
} else {
|
||||
ut_ad(srv_sys_mutex_own());
|
||||
}
|
||||
|
||||
if (thr->slot != NULL && thr->slot->in_use && thr->slot->thr == thr) {
|
||||
|
|
Loading…
Add table
Reference in a new issue