aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-08-14 10:22:57 +0200
committerGitHub Enterprise <[email protected]>2024-08-14 10:22:57 +0200
commit831f0787fca39682dec0141714eaebb7772b8639 (patch)
treea72de0a27bb2d62589c3d968b3e69b43ef3ce0fb /src/zenstore/include
parentimprove logging on main failure (#111) (diff)
downloadzen-831f0787fca39682dec0141714eaebb7772b8639.tar.xz
zen-831f0787fca39682dec0141714eaebb7772b8639.zip
hardening and reduced spam from GC on failure (#112)
* Retry writing GC state if it fails to handle transient problems * If GC operation fails demote errors to warnings on consecutive fails
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/gc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h
index 2edb5e0a5..92f2bdf78 100644
--- a/src/zenstore/include/zenstore/gc.h
+++ b/src/zenstore/include/zenstore/gc.h
@@ -537,7 +537,7 @@ public:
private:
void SchedulerThread();
- void CollectGarbage(const GcClock::TimePoint& CacheExpireTime,
+ bool CollectGarbage(const GcClock::TimePoint& CacheExpireTime,
const GcClock::TimePoint& ProjectStoreExpireTime,
bool Delete,
bool CollectSmallObjects,
@@ -545,7 +545,8 @@ private:
GcVersion UseGCVersion,
uint32_t CompactBlockUsageThresholdPercent,
bool Verbose,
- bool SingleThreaded);
+ bool SingleThreaded,
+ bool SilenceErrors);
void ScrubStorage(bool DoDelete, bool SkipCid, std::chrono::seconds TimeSlice);
LoggerRef Log() { return m_Log; }
virtual bool AreDiskWritesAllowed() const override { return !m_AreDiskWritesBlocked.load(); }