From 5e43b80df4cf8fff6bd350139783fb15d9d25207 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 7 Apr 2022 23:34:15 +0200 Subject: correct expire vs contribute --- zenstore/gc.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'zenstore/gc.cpp') diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp index 856f9af02..21522e46a 100644 --- a/zenstore/gc.cpp +++ b/zenstore/gc.cpp @@ -212,9 +212,8 @@ GcContext::ContributeCas(std::span Cas) } void -GcContext::ContributeCacheKeys(const std::string& Bucket, std::vector ValidKeys, std::vector ExpiredKeys) +GcContext::ContributeCacheKeys(const std::string& Bucket, std::vector&& ExpiredKeys) { - m_State->m_CacheBuckets[Bucket].ValidKeys = std::move(ValidKeys); m_State->m_CacheBuckets[Bucket].ExpiredKeys = std::move(ExpiredKeys); } @@ -254,12 +253,6 @@ GcContext::DeletedCas() return m_State->m_DeletedCasChunks; } -std::span -GcContext::ValidCacheKeys(const std::string& Bucket) const -{ - return m_State->m_CacheBuckets[Bucket].ValidKeys; -} - std::span GcContext::ExpiredCacheKeys(const std::string& Bucket) const { -- cgit v1.2.3