Fix erroneous early return

This commit is contained in:
Jussi Saurio
2025-06-24 11:26:00 +03:00
parent 5878724d0e
commit bdfbb8fe54

View File

@@ -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.