diff options
| author | Dan Engelbrecht <[email protected]> | 2024-08-19 11:15:49 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-08-19 11:15:49 +0200 |
| commit | f29bcab97bfed84e83e8b910b0910134bbe2049d (patch) | |
| tree | be7b9e0ab9b494cdc255824a9777a56c2f0f7787 /src/zenstore/gc.cpp | |
| parent | cleaned up top level xmake (#125) (diff) | |
| download | zen-f29bcab97bfed84e83e8b910b0910134bbe2049d.tar.xz zen-f29bcab97bfed84e83e8b910b0910134bbe2049d.zip | |
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
Diffstat (limited to 'src/zenstore/gc.cpp')
| -rw-r--r-- | src/zenstore/gc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |