Interface change! Allow decreasing setOldestVersion

This commit is contained in:
2024-07-03 10:31:57 -07:00
parent 982b31af34
commit 3db3d975fc
3 changed files with 8 additions and 10 deletions
+3 -1
View File
@@ -634,7 +634,9 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
}
void setOldestVersion(int64_t oldestVersion) {
assert(oldestVersion >= this->oldestVersion);
if (oldestVersion < this->oldestVersion) {
return;
}
this->oldestVersion = oldestVersion;
SkipList::Finger finger;
int temp;