diff options
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index 5b08ed83c..143f43deb 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -995,7 +995,7 @@ ZenCacheDiskLayer::CacheBucket::MigrateLegacyData(bool CleanSource) m_PayloadAlignment, CleanSource, [this, &LegacyDiskIndex, &ChunkIndexToChunkHash, &LegacyCasLog, &CasLog, CleanSource, &MigratedBlockCount, &MigratedChunkCount]( - const std::vector<std::pair<size_t, BlockStoreLocation>>& MovedChunks) { + const BlockStore::MovedChunksArray& MovedChunks) { std::vector<DiskIndexEntry> LogEntries; LogEntries.reserve(MovedChunks.size()); for (const auto& Entry : MovedChunks) @@ -1598,7 +1598,7 @@ ZenCacheDiskLayer::CacheBucket::CollectGarbage(GcContext& GcCtx) TotalChunkCount = TotalChunkHashes.size(); std::vector<BlockStoreLocation> ChunkLocations; - std::vector<size_t> KeepChunkIndexes; + BlockStore::ChunkIndexArray KeepChunkIndexes; std::vector<IoHash> ChunkIndexToChunkHash; ChunkLocations.reserve(TotalChunkCount); ChunkLocations.reserve(TotalChunkCount); @@ -1641,8 +1641,8 @@ ZenCacheDiskLayer::CacheBucket::CollectGarbage(GcContext& GcCtx) m_PayloadAlignment, false, [this, &DeletedChunks, &ChunkIndexToChunkHash, &Index, &ReadBlockTimeUs, &ReadBlockLongestTimeUs]( - const std::vector<std::pair<size_t, BlockStoreLocation>>& MovedChunks, - const std::vector<size_t>& RemovedChunks) { + const BlockStore::MovedChunksArray& MovedChunks, + const BlockStore::ChunkIndexArray& RemovedChunks) { std::vector<DiskIndexEntry> LogEntries; LogEntries.reserve(MovedChunks.size() + RemovedChunks.size()); for (const auto& Entry : MovedChunks) |