summaryrefslogtreecommitdiff
path: root/src/btree
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree')
-rw-r--r--src/btree/bt_walk.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/btree/bt_walk.c b/src/btree/bt_walk.c
index 55b11d7b2d1..bb8a750d848 100644
--- a/src/btree/bt_walk.c
+++ b/src/btree/bt_walk.c
@@ -583,14 +583,14 @@ restart: /*
break;
}
WT_ERR(ret);
+ couple = ref;
/*
* A new page: configure for traversal of any internal
* page's children, else return the leaf page.
*/
if (WT_PAGE_IS_INTERNAL(ref->page)) {
-descend: couple = ref;
- empty_internal = true;
+descend: empty_internal = true;
/*
* There's a split race when a cursor is setting
@@ -649,7 +649,6 @@ descend: couple = ref;
*/
if (skipleafcntp != NULL ||
LF_ISSET(WT_READ_SKIP_LEAF)) {
- couple = ref;
if (LF_ISSET(WT_READ_SKIP_LEAF))
break;
if (*skipleafcntp > 0) {