aboutsummaryrefslogtreecommitdiff
path: root/zenstore
diff options
context:
space:
mode:
Diffstat (limited to 'zenstore')
-rw-r--r--zenstore/cidstore.cpp6
-rw-r--r--zenstore/gc.cpp2
-rw-r--r--zenstore/include/zenstore/cidstore.h1
3 files changed, 8 insertions, 1 deletions
diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp
index c91f69ff7..4ddf34c79 100644
--- a/zenstore/cidstore.cpp
+++ b/zenstore/cidstore.cpp
@@ -289,4 +289,10 @@ CidStore::Scrub(ScrubContext& Ctx)
m_Impl->Scrub(Ctx);
}
+CasStoreSize
+CidStore::CasSize() const
+{
+ return m_Impl->m_CasStore.TotalSize();
+}
+
} // namespace zen
diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp
index 52bb33955..5c2ee2daa 100644
--- a/zenstore/gc.cpp
+++ b/zenstore/gc.cpp
@@ -138,7 +138,7 @@ CasGc::CollectGarbage()
// First gather reference set
GcContext GcCtx;
- GcCtx.SetDeletionMode(false);
+ GcCtx.SetDeletionMode(true);
for (GcContributor* Contributor : m_GcContribs)
{
diff --git a/zenstore/include/zenstore/cidstore.h b/zenstore/include/zenstore/cidstore.h
index a69569bd2..4dd83f24e 100644
--- a/zenstore/include/zenstore/cidstore.h
+++ b/zenstore/include/zenstore/cidstore.h
@@ -54,6 +54,7 @@ public:
bool ContainsChunk(const IoHash& DecompressedId);
void Flush();
void Scrub(ScrubContext& Ctx);
+ CasStoreSize CasSize() const;
// TODO: add batch filter support