Remove a check from setOldestVersion

This commit is contained in:
2024-02-19 16:20:04 -08:00
parent c9baa80212
commit cb2f66b4b7
474 changed files with 13 additions and 11 deletions

View File

@@ -1554,13 +1554,12 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
// Any transaction prev would have prevented from committing is
// going to fail with TooOld anyway.
// We still need to make sure that we don't introduce false positives by
// just removing it though.
if (n->entry.rangeVersion <= oldestVersion) {
prev->entryPresent = false;
if (prev->numChildren == 0 && prev->parent != nullptr) {
eraseChild(prev->parent, prev->parentsIndex);
}
// There's no way to insert a range such that range version of the right
// node is greater than the point version of the left node
assert(n->entry.rangeVersion <= oldestVersion);
prev->entryPresent = false;
if (prev->numChildren == 0 && prev->parent != nullptr) {
eraseChild(prev->parent, prev->parentsIndex);
}
}