diff options
| author | Stefan Boberg <[email protected]> | 2021-10-19 22:21:45 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-19 22:21:45 +0200 |
| commit | 483a40f2cf28b52c4447d5a98bcc7f79c50f426c (patch) | |
| tree | 328c683489b92535a0d7094e7908d1d60f1df689 /zenstore/CAS.cpp | |
| parent | gc: moved GcContect from CAS into gc files (diff) | |
| download | zen-483a40f2cf28b52c4447d5a98bcc7f79c50f426c.tar.xz zen-483a40f2cf28b52c4447d5a98bcc7f79c50f426c.zip | |
cas: Hooked up GC to structured cache
Diffstat (limited to 'zenstore/CAS.cpp')
| -rw-r--r-- | zenstore/CAS.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zenstore/CAS.cpp b/zenstore/CAS.cpp index 807bba3b3..589637b62 100644 --- a/zenstore/CAS.cpp +++ b/zenstore/CAS.cpp @@ -100,6 +100,7 @@ public: virtual void FilterChunks(CasChunkSet& InOutChunks) override; virtual void Flush() override; virtual void Scrub(ScrubContext& Ctx) override; + virtual void GarbageCollect(GcContext& GcCtx) override; private: CasContainerStrategy m_TinyStrategy; @@ -234,6 +235,12 @@ CasImpl::Scrub(ScrubContext& Ctx) m_LargeStrategy.Scrub(Ctx); } +void +CasImpl::GarbageCollect(GcContext& GcCtx) +{ + m_LargeStrategy.GarbageCollect(GcCtx); +} + ////////////////////////////////////////////////////////////////////////// CasStore* |