From bc328f9738ea263ffc14b398884602fe76666c83 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Thu, 10 Jul 2025 15:39:22 +0300 Subject: [PATCH] btree: one more is_last_sibling doc variable --- core/storage/btree.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/storage/btree.rs b/core/storage/btree.rs index 0a39d891c..c27ae04e9 100644 --- a/core/storage/btree.rs +++ b/core/storage/btree.rs @@ -2861,7 +2861,8 @@ impl BTreeCursor { cell_array.cell_size_bytes(cell_right as usize) as i64; // TODO: add assert nMaxCells - let pointer_size = if i == sibling_count_new - 1 { + let is_last_sibling = i == sibling_count_new - 1; + let pointer_size = if is_last_sibling { 0 } else { CELL_PTR_SIZE_BYTES as i64