aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/gc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h
index c3a71baa6..2edb5e0a5 100644
--- a/src/zenstore/include/zenstore/gc.h
+++ b/src/zenstore/include/zenstore/gc.h
@@ -444,6 +444,7 @@ struct GcSchedulerConfig
GcVersion UseGCVersion = GcVersion::kV1;
uint32_t CompactBlockUsageThresholdPercent = 90;
bool Verbose = false;
+ bool SingleThreaded = false;
};
struct GcSchedulerState
@@ -517,6 +518,7 @@ public:
std::optional<GcVersion> ForceGCVersion;
std::optional<uint32_t> CompactBlockUsageThresholdPercent;
std::optional<bool> Verbose;
+ std::optional<bool> SingleThreaded;
};
bool TriggerGc(const TriggerGcParams& Params);
@@ -542,7 +544,8 @@ private:
bool SkipCid,
GcVersion UseGCVersion,
uint32_t CompactBlockUsageThresholdPercent,
- bool Verbose);
+ bool Verbose,
+ bool SingleThreaded);
void ScrubStorage(bool DoDelete, bool SkipCid, std::chrono::seconds TimeSlice);
LoggerRef Log() { return m_Log; }
virtual bool AreDiskWritesAllowed() const override { return !m_AreDiskWritesBlocked.load(); }