Commit de31f61f authored by Sunny Bains's avatar Sunny Bains

Add a debug assertion for the case where the waiting thread is being woken

up because of a lock wait timeout.
parent 7b26e187
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment