summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-08-10 12:42:32 -0400
committerKeith Bostic <keith@wiredtiger.com>2014-08-10 12:42:32 -0400
commit990aa682067efd31499b3f3036fb14537d60a5fb (patch)
treef8c5d6a993a256dc708e1e541373d87df05a3d9b
parentf0e74778777940bbdd906ec0f554037cccfca002 (diff)
downloadmongo-990aa682067efd31499b3f3036fb14537d60a5fb.tar.gz
When reviewing key order during a split, assert the collation function
doesn't fail.
-rw-r--r--src/btree/rec_split.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/btree/rec_split.c b/src/btree/rec_split.c
index 635f4272112..634c05c0022 100644
--- a/src/btree/rec_split.c
+++ b/src/btree/rec_split.c
@@ -363,8 +363,10 @@ __split_verify_intl_key_order(WT_SESSION_IMPL *session, WT_PAGE *page)
if (first)
first = 0;
else {
- (void)__wt_lex_compare_collator(session,
- btree->collator, last, next, &cmp);
+ WT_ASSERT(session,
+ __wt_lex_compare_collator(
+ session, btree->collator,
+ last, next, &cmp) == 0);
WT_ASSERT(session, cmp < 0);
}
}