summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mysys/mf_keycache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/mf_keycache.c b/mysys/mf_keycache.c
index 9bfdef82337..64d0ea98427 100644
--- a/mysys/mf_keycache.c
+++ b/mysys/mf_keycache.c
@@ -1729,6 +1729,7 @@ restart:
- block assigned but not yet read from file (invalid data).
*/
+#if THREAD
if (keycache->in_resize)
{
/* This is a request during a resize operation */
@@ -1970,6 +1971,9 @@ restart:
}
DBUG_RETURN(0);
}
+#else /* THREAD */
+ DBUG_ASSERT(!keycache->in_resize);
+#endif
if (page_status == PAGE_READ &&
(block->status & (BLOCK_IN_EVICTION | BLOCK_IN_SWITCH |