From cf694b4f5c70592fc6054c58bee08ef49e2e8420 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 14 Jun 2022 10:21:28 +0200 Subject: small cleanup --- zenserver/cache/structuredcachestore.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'zenserver/cache/structuredcachestore.cpp') diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index ed602f3f7..7bcd7b06a 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -1360,8 +1360,6 @@ ZenCacheDiskLayer::CacheBucket::Scrub(ScrubContext& Ctx) { BadKeys.push_back(HashKey); } - // Note: we cannot currently validate contents since we don't - // have a content hash! continue; } ZenCacheValue Value; @@ -1378,8 +1376,7 @@ ZenCacheDiskLayer::CacheBucket::Scrub(ScrubContext& Ctx) } else { - BlockStoreLocation Location = Loc.GetBlockLocation(m_PayloadAlignment); - ChunkLocations.push_back(Location); + ChunkLocations.emplace_back(Loc.GetBlockLocation(m_PayloadAlignment)); ChunkIndexToChunkHash.push_back(HashKey); continue; } -- cgit v1.2.3