diff --git a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c index 4e83edcb542..b539807b0e9 100644 --- a/storage/innobase/srv/srv0srv.c +++ b/storage/innobase/srv/srv0srv.c @@ -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) {