diff options
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | src/zenstore/gc.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c083e91f..6dc148e81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## - Bugfix: If we fail to get information on a cache chunk for a partial chunk request - treat it as a cache miss +- Bugfix: Set last GC time when we skip GC due to low disk space to avoid spam-running GC ## 5.5.4 - Feature: Added new option to zenserver for GC V2 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 } |