diff options
Diffstat (limited to 'zenstore/chunkbundler.h')
| -rw-r--r-- | zenstore/chunkbundler.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zenstore/chunkbundler.h b/zenstore/chunkbundler.h index d84ee9627..4b24ec958 100644 --- a/zenstore/chunkbundler.h +++ b/zenstore/chunkbundler.h @@ -85,18 +85,18 @@ private: std::string m_ContainerBaseName; RwLock m_LocationMapLock; - RwLock m_InsertLock; // used to serialize inserts std::unordered_map<IoHash, CompactDiskLocation, IoHash::Hasher> m_LocationMap; + std::unordered_map<uint16_t, std::shared_ptr<BasicFile>> m_OpenBlocks; + uint16_t m_CurrentFileIndex = 0; + + RwLock m_InsertLock; // used to serialize inserts + std::weak_ptr<BasicFile> m_CurrentBlock; std::atomic_uint32_t m_CurrentInsertOffset{}; + std::atomic_uint64_t m_CurrentIndexOffset{}; std::atomic_uint64_t m_TotalSize{}; void MakeIndexSnapshot(); - - // Reserve one block of 1Gb - std::unordered_map<uint16_t, std::shared_ptr<BasicFile>> m_OpenBlocks; - std::weak_ptr<BasicFile> m_CurrentBlock; - uint16_t m_CurrentFileIndex = 0; }; ////////////////////////////////////////////////////////////////////////// |