mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Leave parent pointing at rightmost pointer at the end of balance_root()
This commit is contained in:
@@ -3803,6 +3803,7 @@ impl BTreeCursor {
|
||||
self.root_page = root.get().id;
|
||||
self.stack.clear();
|
||||
self.stack.push(root_btree.clone());
|
||||
self.stack.set_cell_index(0); // leave parent pointing at the rightmost pointer (in this case 0, as there are no cells), since we will be balancing the rightmost child page.
|
||||
self.stack.push(child_btree.clone());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user