aboutsummaryrefslogtreecommitdiff
path: root/zenstore
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
committerStefan Boberg <[email protected]>2021-09-20 21:01:01 +0200
commit961173f44df332cd17e1b9875e4ef5eb9cea1d3a (patch)
treea76b3adcdebd479c70c57bf9fb0391a1237dd5f4 /zenstore
parentMade use of mimalloc controlled by define (diff)
downloadzen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.tar.xz
zen-961173f44df332cd17e1b9875e4ef5eb9cea1d3a.zip
Added more scrub stubs in higher level services
Diffstat (limited to 'zenstore')
-rw-r--r--zenstore/cidstore.cpp7
-rw-r--r--zenstore/include/zenstore/cidstore.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp
index e1b7ac656..6dd33efb2 100644
--- a/zenstore/cidstore.cpp
+++ b/zenstore/cidstore.cpp
@@ -91,6 +91,7 @@ struct CidStore::CidState
}
void Flush() { m_LogFile.Flush(); }
+ void Scrub(ScrubContext& Ctx) { ZEN_UNUSED(Ctx); }
};
//////////////////////////////////////////////////////////////////////////
@@ -134,4 +135,10 @@ CidStore::Flush()
m_Impl->Flush();
}
+void
+CidStore::Scrub(ScrubContext& Ctx)
+{
+ m_Impl->Scrub(Ctx);
+}
+
} // namespace zen
diff --git a/zenstore/include/zenstore/cidstore.h b/zenstore/include/zenstore/cidstore.h
index f023ada40..49f2bf99a 100644
--- a/zenstore/include/zenstore/cidstore.h
+++ b/zenstore/include/zenstore/cidstore.h
@@ -45,6 +45,7 @@ public:
IoBuffer FindChunkByCid(const IoHash& DecompressedId);
bool ContainsChunk(const IoHash& DecompressedId);
void Flush();
+ void Scrub(ScrubContext& Ctx);
// TODO: add batch filter support