diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-06-10 12:33:25 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-06-10 12:33:25 -0400 |
commit | 203497d1bad46f6ca6f06920a2da4a5c26466290 (patch) | |
tree | adc7c354aba4581f3170f8e337d184c5b8acf935 /src | |
parent | 64bad1544fba5b84720e52b7f48c57aa18b0b3c5 (diff) | |
download | mongo-203497d1bad46f6ca6f06920a2da4a5c26466290.tar.gz |
The parent page type must be an internal page, don't bother testing for
leaf pages, it's confusing.
Diffstat (limited to 'src')
-rw-r--r-- | src/btree/rec_split.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/btree/rec_split.c b/src/btree/rec_split.c index 723a7f00a28..f7be53f6b3f 100644 --- a/src/btree/rec_split.c +++ b/src/btree/rec_split.c @@ -792,15 +792,11 @@ __wt_split_evict(WT_SESSION_IMPL *session, WT_REF *ref, int exclusive) size = sizeof(WT_PAGE_INDEX) + pindex->entries * sizeof(WT_REF *); parent_decr += size; WT_TRET(__wt_session_fotxn_add(session, pindex, size)); - switch (parent->type) { - case WT_PAGE_ROW_INT: - case WT_PAGE_ROW_LEAF: - if ((ikey = __wt_ref_key_instantiated(ref)) == NULL) - break; + if (parent->type == WT_PAGE_ROW_INT && + (ikey = __wt_ref_key_instantiated(ref)) != NULL) { size = sizeof(WT_IKEY) + ikey->size; parent_decr += size; WT_TRET(__wt_session_fotxn_add(session, ikey, size)); - break; } WT_TRET(__wt_session_fotxn_add(session, ref, sizeof(WT_REF))); parent_decr += sizeof(WT_REF); |