apply more update till root

This commit is contained in:
2024-04-30 06:21:41 +00:00
parent a75b5d8ed5
commit 27ed3f9a55
3 changed files with 17 additions and 2 deletions

View File

@ -512,6 +512,11 @@ class BPlusTreeIndexer {
prev_page_guard.template As<PageType>()
->data.p_data[prev_page_guard.template As<PageType>()->data.key_count - 1]
.first;
if (need_update) {
// now we need to check if we have to update the right bound till the root
pos.path.pop_back();
TryUpdateTillRoot(pos);
}
return;
}
}
@ -546,6 +551,9 @@ class BPlusTreeIndexer {
.second;
}
}
// now we need to check if we have to update the right bound till the root
pos.path.pop_back();
TryUpdateTillRoot(pos);
return;
}
}