From 6b59e4b72e65675c1eff6adee1e25eaa30e167cf Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 22 Sep 2025 12:12:12 +0200 Subject: issue error on second retry, not first attempt (#503) --- src/zenstore/gc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/zenstore/gc.cpp') diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp index 1ddb25364..185bc2118 100644 --- a/src/zenstore/gc.cpp +++ b/src/zenstore/gc.cpp @@ -2858,7 +2858,7 @@ GcScheduler::CollectGarbage(const GcClock::TimePoint& CacheExpireTime, { ZEN_WARN("writing gc scheduler state ran out of disk space: '{}'", SystemError.what()); } - else if (RetryCount == 0) + else if (RetryCount == 2) { ZEN_ERROR("writing gc scheduler state failed with system error exception: '{}' ({})", SystemError.what(), @@ -2877,7 +2877,7 @@ GcScheduler::CollectGarbage(const GcClock::TimePoint& CacheExpireTime, } catch (const std::exception& Ex) { - if (RetryCount == 0) + if (RetryCount == 2) { ZEN_ERROR("writing gc scheduler state failed with: '{}'", Ex.what()); } -- cgit v1.2.3