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:
Sunny Bains 2010-04-23 17:52:09 +10:00
parent 7b26e1871a
commit de31f61f2f

View file

@ -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) {