From f29bcab97bfed84e83e8b910b0910134bbe2049d Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Mon, 19 Aug 2024 11:15:49 +0200 Subject: if disk space is low, set the last gc time to avoid spamming retries (#124) * if disk space is low, set the last gc time to avoid spamming retries --- src/zenstore/gc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zenstore/gc.cpp') diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp index ec1eb3722..3f3adeb82 100644 --- a/src/zenstore/gc.cpp +++ b/src/zenstore/gc.cpp @@ -2161,6 +2161,8 @@ GcScheduler::CollectGarbage(const GcClock::TimePoint& CacheExpireTime, ZEN_WARN( "Disk space is very low and we have no GC reserve, skipping GC as this requires at least some space to write to '{}'", m_Config.RootDirectory); + m_LastGcTime = GcClock::Now(); + m_LastLightweightGcTime = m_LastGcTime; return true; // Treat this as a success as we don't want to silence any errors that happens when we are no longer low on // disk space } -- cgit v1.2.3