aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/compactcas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/compactcas.cpp')
-rw-r--r--src/zenstore/compactcas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenstore/compactcas.cpp b/src/zenstore/compactcas.cpp
index 6af07a606..5fca3046c 100644
--- a/src/zenstore/compactcas.cpp
+++ b/src/zenstore/compactcas.cpp
@@ -1293,9 +1293,9 @@ CasContainerStrategy::OpenContainer(bool IsNewStore)
for (const auto& Entry : m_LocationMap)
{
- const BlockStoreDiskLocation& DiskLocation = m_Locations[Entry.second];
- BlockStoreLocation BlockLocation = DiskLocation.Get(m_PayloadAlignment);
- KnownBlocks.Add(BlockLocation.BlockIndex);
+ const BlockStoreDiskLocation& DiskLocation = m_Locations[Entry.second];
+ uint32_t BlockIndex = DiskLocation.GetBlockIndex();
+ KnownBlocks.insert(BlockIndex);
}
m_BlockStore.SyncExistingBlocksOnDisk(KnownBlocks);