mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03: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
@ -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…
x
Reference in New Issue
Block a user