aboutsummaryrefslogtreecommitdiff
path: root/zenstore/filecas.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-13 19:46:36 +0100
committerPer Larsson <[email protected]>2021-12-13 19:46:36 +0100
commit3e666bec6605931114c1d78d48bffeeb75e3e61b (patch)
treec8db57d3f2f7f9d6947ad6a6f8ac0b38289e4f77 /zenstore/filecas.cpp
parentFixed bug in z$ GC. (diff)
downloadzen-3e666bec6605931114c1d78d48bffeeb75e3e61b.tar.xz
zen-3e666bec6605931114c1d78d48bffeeb75e3e61b.zip
Remove Cid to CAS chunk mapping after GC.
Diffstat (limited to 'zenstore/filecas.cpp')
-rw-r--r--zenstore/filecas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp
index bfad34c86..2fc968a91 100644
--- a/zenstore/filecas.cpp
+++ b/zenstore/filecas.cpp
@@ -616,6 +616,8 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx)
ZEN_WARN("failed to delete file for chunk {}: '{}'", Hash, Ec.message());
}
}
+
+ GcCtx.DeletedCas(ChunksToDelete);
}
//////////////////////////////////////////////////////////////////////////