Amortize cost of pausing gc in setOldestVersion

This commit is contained in:
2024-02-26 19:23:29 -08:00
parent 5f7789128e
commit f38198a39d

View File

@@ -1863,7 +1863,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
}
void setOldestVersion(int64_t oldestVersion) {
if (oldestVersion <= this->oldestVersion) {
if (oldestVersion <= this->oldestVersion || keyUpdates < 1000) {
return;
}
this->oldestVersion = oldestVersion;