aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-06-14 10:21:28 +0200
committerDan Engelbrecht <[email protected]>2022-06-14 10:21:28 +0200
commitcf694b4f5c70592fc6054c58bee08ef49e2e8420 (patch)
treed864d1a2f569859740475d1b657bb649235cf733
parentclang format (diff)
downloadzen-cf694b4f5c70592fc6054c58bee08ef49e2e8420.tar.xz
zen-cf694b4f5c70592fc6054c58bee08ef49e2e8420.zip
small cleanup
-rw-r--r--zenserver/cache/structuredcachestore.cpp5
1 files changed, 1 insertions, 4 deletions
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;
}