From bdfbb8fe541f752becbd4559178989eb43684c7e Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Tue, 24 Jun 2025 11:26:00 +0300 Subject: [PATCH] Fix erroneous early return --- core/storage/btree.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 057f89412..fc654ea0c 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -2136,7 +2136,6 @@ impl BTreeCursor { .expect("expected write info"); if page.get().get_contents().overflow_cells.is_empty() { write_info.state = WriteState::Finish; - return Ok(CursorResult::Ok(())); } else { write_info.state = WriteState::BalanceStart; // If we balance, we must save the cursor position and seek to it later. @@ -2168,7 +2167,6 @@ impl BTreeCursor { .expect("expected write info"); if page.get().get_contents().overflow_cells.is_empty() { write_info.state = WriteState::Finish; - return Ok(CursorResult::Ok(())); } else { write_info.state = WriteState::BalanceStart; // If we balance, we must save the cursor position and seek to it later.