fix old bugs and ready to write snapshot

This commit is contained in:
2024-05-04 05:19:00 +00:00
parent ae57e20ad6
commit 9b8c1569a6
2 changed files with 3 additions and 3 deletions

View File

@ -823,7 +823,7 @@ class BPlusTreeIndexer {
if (pos.is_end) return false;
if (key_cmp(key, pos.path.back().first.template As<PageType>()->data.p_data[pos.path.back().second].first))
return false;
if (!value_removed) {
if (value_removed != nullptr) {
*value_removed = pos.path.back().first.template As<PageType>()->data.p_data[pos.path.back().second].second;
}
RemoveEntryAt(pos);