Fixed B+Tree deletion bug.

This commit is contained in:
Daniel Beer 2010-03-31 20:59:46 +13:00
parent dab86a82f6
commit 188efdca10
1 changed files with 2 additions and 0 deletions

View File

@ -321,6 +321,8 @@ static void merge_pages(struct btree_page *lower,
PAGE_DATA(higher, 0),
higher->num_children * def->data_size);
lower->num_children += higher->num_children;
/* Fix up the cursor if we subsumed an active page */
if (bt->slot[0] >= 0) {
if (bt->path[higher->height] == higher) {