aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-08 10:42:14 +0200
committerGitHub <[email protected]>2022-06-08 10:42:14 +0200
commit898831078128b31e2c56e8b830f9b505e23a56bf (patch)
treea9d846c38fb864a14c2c15b961f39e5839be8ea2 /zenserver/cache/structuredcachestore.cpp
parentupdated changelog (diff)
parentMerge pull request #123 from EpicGames/de/fix-gc-over-multiple-namespaces (diff)
downloadzen-898831078128b31e2c56e8b830f9b505e23a56bf.tar.xz
zen-898831078128b31e2c56e8b830f9b505e23a56bf.zip
Merge branch 'main' into de/add-log-for-invalid-names
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index bc60a1d26..91e374ae2 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -1461,7 +1461,7 @@ ZenCacheDiskLayer::CacheBucket::GatherReferences(GcContext& GcCtx)
}
GcCtx.ContributeCids(Cids);
- GcCtx.ContributeCacheKeys(m_BucketName, std::move(ExpiredKeys));
+ GcCtx.ContributeCacheKeys(m_BucketDir.string(), std::move(ExpiredKeys));
}
void
@@ -1506,7 +1506,7 @@ ZenCacheDiskLayer::CacheBucket::CollectGarbage(GcContext& GcCtx)
m_SlogFile.Flush();
- std::span<const IoHash> ExpiredCacheKeys = GcCtx.ExpiredCacheKeys(m_BucketName);
+ std::span<const IoHash> ExpiredCacheKeys = GcCtx.ExpiredCacheKeys(m_BucketDir.string());
std::vector<IoHash> DeleteCacheKeys;
DeleteCacheKeys.reserve(ExpiredCacheKeys.size());
GcCtx.FilterCas(ExpiredCacheKeys, [&](const IoHash& ChunkHash, bool Keep) {