diff options
| author | Stefan Boberg <[email protected]> | 2023-05-15 20:54:46 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-15 20:54:46 +0200 |
| commit | 583b308a1e605da9bd70484767d6134891b9c3ba (patch) | |
| tree | 5769264a7f637823c39e62cd61a2b44316102d5a /src/zenstore/cas.cpp | |
| parent | some HttpClient changes eliminating some cpr helpers (diff) | |
| download | zen-583b308a1e605da9bd70484767d6134891b9c3ba.tar.xz zen-583b308a1e605da9bd70484767d6134891b9c3ba.zip | |
minor GC API cleanup
Scrub -> ScrubStorage
Trigger -> TriggerGc (to make relationship to TriggerScrub clearer)
Diffstat (limited to 'src/zenstore/cas.cpp')
| -rw-r--r-- | src/zenstore/cas.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/zenstore/cas.cpp b/src/zenstore/cas.cpp index fdec78c60..33e1ae0e0 100644 --- a/src/zenstore/cas.cpp +++ b/src/zenstore/cas.cpp @@ -52,7 +52,7 @@ public: virtual bool ContainsChunk(const IoHash& ChunkHash) override; virtual void FilterChunks(HashKeySet& InOutChunks) override; virtual void Flush() override; - virtual void Scrub(ScrubContext& Ctx) override; + virtual void ScrubStorage(ScrubContext& Ctx) override; virtual void GarbageCollect(GcContext& GcCtx) override; virtual CidStoreSize TotalSize() const override; @@ -258,7 +258,7 @@ CasImpl::Flush() } void -CasImpl::Scrub(ScrubContext& Ctx) +CasImpl::ScrubStorage(ScrubContext& Ctx) { if (m_LastScrubTime == Ctx.ScrubTimestamp()) { @@ -267,9 +267,9 @@ CasImpl::Scrub(ScrubContext& Ctx) m_LastScrubTime = Ctx.ScrubTimestamp(); - m_SmallStrategy.Scrub(Ctx); - m_TinyStrategy.Scrub(Ctx); - m_LargeStrategy.Scrub(Ctx); + m_SmallStrategy.ScrubStorage(Ctx); + m_TinyStrategy.ScrubStorage(Ctx); + m_LargeStrategy.ScrubStorage(Ctx); } void @@ -318,7 +318,7 @@ TEST_CASE("CasStore") Store->Initialize(config); ScrubContext Ctx; - Store->Scrub(Ctx); + Store->ScrubStorage(Ctx); IoBuffer Value1{16}; memcpy(Value1.MutableData(), "1234567890123456", 16); |