From f38198a39d745db849a6e7ec17139f6837ac6daa Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 26 Feb 2024 19:23:29 -0800 Subject: [PATCH] Amortize cost of pausing gc in setOldestVersion --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 5735b89..25c8a29 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -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;