aboutsummaryrefslogtreecommitdiff
path: root/zenstore
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-05 19:49:21 +0100
committerPer Larsson <[email protected]>2021-12-05 19:49:21 +0100
commite0aa144d6051d87358872a891f1be02a113009f1 (patch)
tree6dddcae4ce523322ac6977907e50db4bce1f35eb /zenstore
parentCheck available disk space before GC. (diff)
downloadzen-e0aa144d6051d87358872a891f1be02a113009f1.tar.xz
zen-e0aa144d6051d87358872a891f1be02a113009f1.zip
Fixed bug in container GC.
Diffstat (limited to 'zenstore')
-rw-r--r--zenstore/compactcas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp
index eeaec6f36..b481dead5 100644
--- a/zenstore/compactcas.cpp
+++ b/zenstore/compactcas.cpp
@@ -320,7 +320,7 @@ CasContainerStrategy::CollectGarbage(GcContext& GcCtx)
const bool GcEnabled = GcCtx.IsDeletionMode() && GcCtx.IsContainerGcEnabled();
- if (GcEnabled)
+ if (!GcEnabled)
{
ZEN_INFO("garbage collect from '{}' DISABLED, found #{} {} chunks of total #{} {}",
m_Config.RootDirectory / m_ContainerBaseName,