From cd627c2368879df58eca1a2b565d34d2cdc13a34 Mon Sep 17 00:00:00 2001 From: Nikita Sivukhin Date: Tue, 2 Sep 2025 15:59:51 +0400 Subject: [PATCH] remove unnecessary changes --- core/storage/btree.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 8892ac362..8b37dc64b 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -757,7 +757,6 @@ impl BTreeCursor { continue; } if contents.is_leaf() { - self.going_upwards = false; return Ok(IOResult::Done(true)); } @@ -5998,9 +5997,6 @@ impl PageStack { assert!(current > 0); self.node_states[current] = BTreeNodeState::default(); self.stack[current] = None; - // cell_count must be unset for last stack page by default - // (otherwise caller can think that he is at the leaf and enable hot-path optimization) - self.node_states[current - 1].cell_count = None; self.current_page -= 1; }