summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-01-03 18:29:22 +0000
committerKeith Bostic <keith@wiredtiger.com>2013-01-03 18:29:22 +0000
commitd5d111af7863a08f413282660a7d4ef45183fa20 (patch)
treec62a431dcab25aff7f855215c31b359bf1cd75cb
parent05005aaec221a52b8f5081f9ceb4a05b7aff2325 (diff)
downloadmongo-d5d111af7863a08f413282660a7d4ef45183fa20.tar.gz
Panic if we get an illegal flag to the __wt_bt_cache_op function.
-rw-r--r--src/btree/bt_sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/btree/bt_sync.c b/src/btree/bt_sync.c
index 3ef8e57af26..846dc9afc72 100644
--- a/src/btree/bt_sync.c
+++ b/src/btree/bt_sync.c
@@ -88,6 +88,7 @@ __wt_bt_cache_op(WT_SESSION_IMPL *session, WT_CKPT *ckptbase, int op)
/* If discarding the tree, the root page should be gone. */
WT_ASSERT(session, ret != 0 || btree->root_page == NULL);
break;
+ WT_ILLEGAL_VALUE_ERR(session);
}
err: btree->ckpt = NULL;