diff options
| author | Dan Engelbrecht <[email protected]> | 2022-03-23 17:20:39 +0100 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-03-31 11:29:27 +0200 |
| commit | a24ebc13bd3321eaef5757f6b42fd7fa2ebdfcc0 (patch) | |
| tree | 5292d47e59ca5821c13328670fd0952082506b6c /zenstore/compactcas.h | |
| parent | typedef for LocationMap (diff) | |
| download | zen-a24ebc13bd3321eaef5757f6b42fd7fa2ebdfcc0.tar.xz zen-a24ebc13bd3321eaef5757f6b42fd7fa2ebdfcc0.zip | |
review feedback
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{}; |