summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/btree/col_srch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/src/btree/col_srch.c')
-rw-r--r--src/third_party/wiredtiger/src/btree/col_srch.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/third_party/wiredtiger/src/btree/col_srch.c b/src/third_party/wiredtiger/src/btree/col_srch.c
index 78ee367dc69..10bc3894a0d 100644
--- a/src/third_party/wiredtiger/src/btree/col_srch.c
+++ b/src/third_party/wiredtiger/src/btree/col_srch.c
@@ -62,7 +62,7 @@ __check_leaf_key_range(WT_SESSION_IMPL *session,
*/
int
__wt_col_search(WT_SESSION_IMPL *session,
- uint64_t search_recno, WT_REF *leaf, WT_CURSOR_BTREE *cbt)
+ uint64_t search_recno, WT_REF *leaf, WT_CURSOR_BTREE *cbt, bool restore)
{
WT_BTREE *btree;
WT_COL *cip;
@@ -90,16 +90,15 @@ __wt_col_search(WT_SESSION_IMPL *session,
/*
* We may be searching only a single leaf page, not the full tree. In
- * the normal case where the page links to a parent, check the page's
+ * the normal case where we are searching a tree, check the page's
* parent keys before doing the full search, it's faster when the
- * cursor is being re-positioned. (One case where the page doesn't
- * have a parent is if it is being re-instantiated in memory as part
- * of a split).
+ * cursor is being re-positioned. Skip this if the page is being
+ * re-instantiated in memory.
*/
if (leaf != NULL) {
WT_ASSERT(session, search_recno != WT_RECNO_OOB);
- if (leaf->home != NULL) {
+ if (!restore) {
WT_RET(__check_leaf_key_range(
session, recno, leaf, cbt));
if (cbt->compare != 0) {