Merge 'Fix post balance validation ' from Pere Diaz Bou

Closes #1360
This commit is contained in:
Jussi Saurio
2025-04-17 22:48:51 +03:00

View File

@@ -2782,6 +2782,10 @@ impl BTreeCursor {
}
}
if was_overflow {
if !leaf_data {
// remember to increase cell if this cell was moved to parent
current_index_cell += 1;
}
continue;
}
// check if overflow
@@ -2885,6 +2889,10 @@ impl BTreeCursor {
}
}
if was_overflow {
if !leaf_data {
// remember to increase cell if this cell was moved to parent
current_index_cell += 1;
}
continue;
}
let (parent_cell_start, parent_cell_len) = parent_contents.cell_get_raw_region(