summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorJoerg Bruehe <joerg@mysql.com>2009-10-09 15:21:45 +0200
committerJoerg Bruehe <joerg@mysql.com>2009-10-09 15:21:45 +0200
commit1d5acddf151a7300db1030f4b8b9fe323dae9af9 (patch)
treea9e71e46d5992a103a62ef5aa43325950ba5a29b /mysys
parentc7470df2feb72cbab98201b2e0a9ebec72a7fdd9 (diff)
parent33b4ba995061d2b3d24c68414e505a43dbd52ebb (diff)
downloadmariadb-git-1d5acddf151a7300db1030f4b8b9fe323dae9af9.tar.gz
Upmerge (automerge) into 5.1
Diffstat (limited to 'mysys')
-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 |