diff options
Diffstat (limited to 'zenstore/compactcas.cpp')
| -rw-r--r-- | zenstore/compactcas.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zenstore/compactcas.cpp b/zenstore/compactcas.cpp index f7cfed47b..521546e10 100644 --- a/zenstore/compactcas.cpp +++ b/zenstore/compactcas.cpp @@ -1135,7 +1135,6 @@ CasContainerStrategy::CollectGarbage(GcContext& GcCtx) WriteOffset = 0; } - NewBlockFile->Write(Chunk.data(), Chunk.size(), WriteOffset); MovedBlockChunks.emplace( ChunkHash, @@ -1439,8 +1438,8 @@ CasContainerStrategy::OpenContainer(bool IsNewStore) std::filesystem::remove(Path); continue; } - auto BlockPath = GetBlockPath(m_BlocksBasePath, BlockIndex); - auto BlockFile = std::make_shared<BlockStoreFile>(BlockPath); + auto BlockPath = GetBlockPath(m_BlocksBasePath, BlockIndex); + auto BlockFile = std::make_shared<BlockStoreFile>(BlockPath); BlockFile->Open(); m_ChunkBlocks[BlockIndex] = BlockFile; } |