diff options
| author | Stefan Boberg <[email protected]> | 2021-08-11 12:09:34 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-08-11 12:09:52 +0200 |
| commit | f84f5d9c1ca60c39cb27c806900d6a99727650d3 (patch) | |
| tree | ac7b7b8337456a57175b5750c13424464bfd5fbd /zenstore/CAS.cpp | |
| parent | trivial: Updated comment (diff) | |
| download | zen-f84f5d9c1ca60c39cb27c806900d6a99727650d3.tar.xz zen-f84f5d9c1ca60c39cb27c806900d6a99727650d3.zip | |
Implemented Flush() operation for CID/CAS store interfaces
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp index 1f477cb17..36cf85549 100644 --- a/zenstore/CAS.cpp +++ b/zenstore/CAS.cpp @@ -40,6 +40,7 @@ public: virtual void Initialize(const CasStoreConfiguration& InConfig) override; virtual CasStore::InsertResult InsertChunk(IoBuffer Chunk, const IoHash& ChunkHash) override; virtual IoBuffer FindChunk(const IoHash& ChunkHash) override; + virtual void Flush() override; private: void PickDefaultDirectory(); @@ -143,13 +144,20 @@ CasImpl::FindChunk(const IoHash& ChunkHash) return IoBuffer{}; } +void +CasImpl::Flush() +{ + m_SmallStrategy.Flush(); + m_TinyStrategy.Flush(); + m_LargeStrategy.Flush(); +} + ////////////////////////////////////////////////////////////////////////// CasStore* CreateCasStore() { return new CasImpl(); - // return new FileCasImpl(); } ////////////////////////////////////////////////////////////////////////// |