Remove a check from setOldestVersion
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user