mirror of
https://github.com/MariaDB/server.git
synced 2025-05-29 21:42:28 +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) {
|
if (!thr_get_trx(thr)->lock_wait_timeout) {
|
||||||
srv_sys_mutex_enter();
|
srv_sys_mutex_enter();
|
||||||
|
} else {
|
||||||
|
ut_ad(srv_sys_mutex_own());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (thr->slot != NULL && thr->slot->in_use && thr->slot->thr == thr) {
|
if (thr->slot != NULL && thr->slot->in_use && thr->slot->thr == thr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user