aboutsummaryrefslogtreecommitdiff
path: root/zenstore/cidstore.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-11 12:09:34 +0200
committerStefan Boberg <[email protected]>2021-08-11 12:09:52 +0200
commitf84f5d9c1ca60c39cb27c806900d6a99727650d3 (patch)
treeac7b7b8337456a57175b5750c13424464bfd5fbd /zenstore/cidstore.cpp
parenttrivial: Updated comment (diff)
downloadzen-f84f5d9c1ca60c39cb27c806900d6a99727650d3.tar.xz
zen-f84f5d9c1ca60c39cb27c806900d6a99727650d3.zip
Implemented Flush() operation for CID/CAS store interfaces
Diffstat (limited to 'zenstore/cidstore.cpp')
-rw-r--r--zenstore/cidstore.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp
index e041574a4..a89a8ac22 100644
--- a/zenstore/cidstore.cpp
+++ b/zenstore/cidstore.cpp
@@ -57,6 +57,8 @@ struct CidStore::CidState
spdlog::debug("CID index initialized: {} entries found", m_CidMap.size());
}
+
+ void Flush() { m_LogFile.Flush(); }
};
//////////////////////////////////////////////////////////////////////////
@@ -82,4 +84,9 @@ CidStore::FindChunkByCid(const IoHash& DecompressedId)
return m_Impl->FindChunkByCid(DecompressedId);
}
+void CidStore::Flush()
+{
+ m_Impl->Flush();
+}
+
} // namespace zen