aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/filecas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/filecas.cpp')
-rw-r--r--src/zenstore/filecas.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp
index ce0dd7ce6..c3dce2b7b 100644
--- a/src/zenstore/filecas.cpp
+++ b/src/zenstore/filecas.cpp
@@ -897,6 +897,11 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx)
ZEN_ASSERT(m_IsInitialized);
+ if (GcCtx.SkipCid())
+ {
+ return;
+ }
+
ZEN_DEBUG("collecting garbage from {}", m_RootDirectory);
std::vector<IoHash> ChunksToDelete;