From 961173f44df332cd17e1b9875e4ef5eb9cea1d3a Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Mon, 20 Sep 2021 21:01:01 +0200 Subject: Added more scrub stubs in higher level services --- zenstore/cidstore.cpp | 7 +++++++ zenstore/include/zenstore/cidstore.h | 1 + 2 files changed, 8 insertions(+) (limited to 'zenstore') 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 -- cgit v1.2.3