From 1256e16611dc2086dea34543bcb51e71e1fb493c Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Fri, 14 May 2010 16:38:32 +0300 Subject: [PATCH] Add a debug assertion to make it clear that we expect to own the kernel mutex in fill_trx_row(). --- storage/innobase/trx/trx0i_s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/innobase/trx/trx0i_s.c b/storage/innobase/trx/trx0i_s.c index 570098d84ea..1edf0d22d4a 100644 --- a/storage/innobase/trx/trx0i_s.c +++ b/storage/innobase/trx/trx0i_s.c @@ -438,6 +438,8 @@ fill_trx_row( which to copy volatile strings */ { + ut_ad(mutex_own(&kernel_mutex)); + row->trx_id = trx_get_id(trx); row->trx_started = (ib_time_t) trx->start_time; row->trx_state = trx_get_que_state_str(trx);