Make sure setOldestVersion has work to do in bench

This commit is contained in:
2024-02-23 14:41:05 -08:00
parent 305c218888
commit 438a2e2abc
2 changed files with 14 additions and 3 deletions

View File

@@ -1743,6 +1743,9 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
}
void setOldestVersion(int64_t oldestVersion) {
if (oldestVersion <= this->oldestVersion) {
return;
}
this->oldestVersion = oldestVersion;
Node *prev = firstGeq(root, removalKey).n;
// There's no way to erase removalKey without introducing a key after it