diff options
Diffstat (limited to 'zenstore/compactcas.h')
| -rw-r--r-- | zenstore/compactcas.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zenstore/compactcas.h b/zenstore/compactcas.h index 7a200eeed..b5871d700 100644 --- a/zenstore/compactcas.h +++ b/zenstore/compactcas.h @@ -68,9 +68,9 @@ private: const CasStoreConfiguration& m_Config; spdlog::logger& m_Log; - uint64_t m_PayloadAlignment; - uint64_t m_MaxBlockSize; - bool m_IsInitialized = false; + uint64_t m_PayloadAlignment = 1u << 4; + uint64_t m_MaxBlockSize = 1u << 28; + bool m_IsInitialized = false; TCasLogFile<CasDiskIndexEntry> m_CasLog; std::string m_ContainerBaseName; std::filesystem::path m_BlocksBasePath; @@ -80,9 +80,9 @@ private: LocationMap_t m_LocationMap; std::unordered_map<uint32_t, std::shared_ptr<BlockStoreFile>> m_ChunkBlocks; - RwLock m_InsertLock; // used to serialize inserts - std::weak_ptr<BlockStoreFile> m_WriteBlock; - std::uint64_t m_CurrentInsertOffset{}; + RwLock m_InsertLock; // used to serialize inserts + std::shared_ptr<BlockStoreFile> m_WriteBlock; + std::uint64_t m_CurrentInsertOffset = 0; std::atomic_uint32_t m_WriteBlockIndex{}; std::atomic_uint64_t m_TotalSize{}; |