aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-09 16:17:56 +0100
committerPer Larsson <[email protected]>2021-12-09 16:17:56 +0100
commitd9dad00a33657c8759ca3551de4139136d16143b (patch)
tree2757d5fbf6b442766b4d6ea269ba2ca8cbbe537c /zenstore/include
parentGC default off. (diff)
downloadzen-d9dad00a33657c8759ca3551de4139136d16143b.tar.xz
zen-d9dad00a33657c8759ca3551de4139136d16143b.zip
Added options for Z$ max duration and whether to collect small objects.
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/gc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h
index 2ec318e9a..3c03c7feb 100644
--- a/zenstore/include/zenstore/gc.h
+++ b/zenstore/include/zenstore/gc.h
@@ -60,8 +60,8 @@ public:
bool IsDeletionMode() const;
void SetDeletionMode(bool NewState);
- bool IsContainerGcEnabled() const;
- void SetContainerGcEnabled(bool NewState);
+ bool CollectSmallObjects() const;
+ void CollectSmallObjects(bool NewState);
GcClock::TimePoint Time() const;
@@ -151,7 +151,9 @@ struct GcSchedulerConfig
{
std::filesystem::path RootDirectory;
std::chrono::seconds Interval{3600};
- bool Enabled = false;
+ std::chrono::seconds MaxCacheDuration{86400};
+ bool CollectSmallObjects = false;
+ bool Enabled = false;
};
class GcScheduler