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/compactcas.cpp | |
| 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/compactcas.cpp')
| -rw-r--r-- | zenstore/compactcas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp index b481dead5..f3fcbca28 100644 --- a/zenstore/compactcas.cpp +++ b/zenstore/compactcas.cpp @@ -318,9 +318,9 @@ CasContainerStrategy::CollectGarbage(GcContext& GcCtx) return; } - const bool GcEnabled = GcCtx.IsDeletionMode() && GcCtx.IsContainerGcEnabled(); + const bool CollectSmallObjects = GcCtx.IsDeletionMode() && GcCtx.CollectSmallObjects(); - if (!GcEnabled) + if (!CollectSmallObjects) { ZEN_INFO("garbage collect from '{}' DISABLED, found #{} {} chunks of total #{} {}", m_Config.RootDirectory / m_ContainerBaseName, |