Commit 33c5bfc7 authored by sunny's avatar sunny

branches/zip: Cover the diagnostic print statement with a suitable lock. It

caused an assertion failure during testing.
parent 61b529a9
...@@ -3070,9 +3070,6 @@ buf_page_io_complete( ...@@ -3070,9 +3070,6 @@ buf_page_io_complete(
ut_error; ut_error;
} }
mutex_exit(buf_page_get_mutex(bpage));
buf_pool_mutex_exit();
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
if (buf_debug_prints) { if (buf_debug_prints) {
fprintf(stderr, "Has %s page space %lu page no %lu\n", fprintf(stderr, "Has %s page space %lu page no %lu\n",
...@@ -3081,6 +3078,9 @@ buf_page_io_complete( ...@@ -3081,6 +3078,9 @@ buf_page_io_complete(
(ulong) buf_page_get_page_no(bpage)); (ulong) buf_page_get_page_no(bpage));
} }
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
mutex_exit(buf_page_get_mutex(bpage));
buf_pool_mutex_exit();
} }
/************************************************************************* /*************************************************************************
......
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