diff options
| author | Per Larsson <[email protected]> | 2021-12-09 16:17:56 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-09 16:17:56 +0100 |
| commit | d9dad00a33657c8759ca3551de4139136d16143b (patch) | |
| tree | 2757d5fbf6b442766b4d6ea269ba2ca8cbbe537c /zenstore/include | |
| parent | GC default off. (diff) | |
| download | zen-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.h | 8 |
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 |