aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenstore/compactcas.h')
-rw-r--r--zenstore/compactcas.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/zenstore/compactcas.h b/zenstore/compactcas.h
index 95c98bd01..77b40063d 100644
--- a/zenstore/compactcas.h
+++ b/zenstore/compactcas.h
@@ -127,13 +127,14 @@ private:
RwLock m_LocationMapLock;
std::unordered_map<IoHash, CasDiskLocation, IoHash::Hasher> m_LocationMap;
+ std::unordered_map<uint32_t, std::shared_ptr<ChunkBlock>> m_ChunkBlocks;
- RwLock m_InsertLock; // used to serialize inserts
- std::unordered_map<uint32_t, std::shared_ptr<ChunkBlock>> m_OpenBlocks;
- std::weak_ptr<ChunkBlock> m_CurrentBlock;
- uint32_t m_CurrentBlockIndex = 0;
- std::atomic_uint64_t m_CurrentInsertOffset{};
- std::atomic_uint64_t m_TotalSize{};
+ RwLock m_InsertLock; // used to serialize inserts
+ std::weak_ptr<ChunkBlock> m_WriteBlock;
+ std::uint64_t m_CurrentInsertOffset{};
+
+ std::atomic_uint32_t m_WriteBlockIndex{};
+ std::atomic_uint64_t m_TotalSize{};
void MakeIndexSnapshot();
};