diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-02 11:03:04 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-02 11:11:54 +0200 |
| commit | 10690e805f45a590094a659c8e1f6482d12aaf8e (patch) | |
| tree | 42aac794a1fcd723530aa0f2bc4940f095ece673 /zenserver/cache/structuredcachestore.cpp | |
| parent | add back gc space reclaim call (diff) | |
| download | zen-10690e805f45a590094a659c8e1f6482d12aaf8e.tar.xz zen-10690e805f45a590094a659c8e1f6482d12aaf8e.zip | |
cleanup
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) |