From 33c5bfc7564b2f752f2ae0d4d195b7068a6ba9f9 Mon Sep 17 00:00:00 2001 From: sunny <> Date: Tue, 17 Jun 2008 19:15:37 +0000 Subject: [PATCH] branches/zip: Cover the diagnostic print statement with a suitable lock. It caused an assertion failure during testing. --- buf/buf0buf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buf/buf0buf.c b/buf/buf0buf.c index 9b2c05a5580..e97e71272ec 100644 --- a/buf/buf0buf.c +++ b/buf/buf0buf.c @@ -3070,9 +3070,6 @@ corrupt: ut_error; } - mutex_exit(buf_page_get_mutex(bpage)); - buf_pool_mutex_exit(); - #ifdef UNIV_DEBUG if (buf_debug_prints) { fprintf(stderr, "Has %s page space %lu page no %lu\n", @@ -3081,6 +3078,9 @@ corrupt: (ulong) buf_page_get_page_no(bpage)); } #endif /* UNIV_DEBUG */ + + mutex_exit(buf_page_get_mutex(bpage)); + buf_pool_mutex_exit(); } /*************************************************************************