aboutsummaryrefslogtreecommitdiff
path: root/zenstore/compactcas.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-17 15:49:30 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:28:32 +0200
commit651155df465cf003c7700e1ef157e41fe7c0d649 (patch)
tree5699f1263ecece0f587b79d9e6476535c297fb76 /zenstore/compactcas.h
parentFix BasicFile::SetFileSize for Mac/Linux (diff)
downloadzen-651155df465cf003c7700e1ef157e41fe7c0d649.tar.xz
zen-651155df465cf003c7700e1ef157e41fe7c0d649.zip
Add header to cas index file
Diffstat (limited to 'zenstore/compactcas.h')
-rw-r--r--zenstore/compactcas.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/zenstore/compactcas.h b/zenstore/compactcas.h
index 43482dd6c..fcb6eec4c 100644
--- a/zenstore/compactcas.h
+++ b/zenstore/compactcas.h
@@ -52,6 +52,8 @@ static_assert(sizeof(CasDiskIndexEntry) == 32);
struct CasContainerStrategy final : public GcStorage
{
+ static constexpr uint32_t DefaultMaxBlockSize = 1u << 30; // 1 Gb
+
CasContainerStrategy(const CasStoreConfiguration& Config, CasGc& Gc);
~CasContainerStrategy();
@@ -74,8 +76,8 @@ private:
const CasStoreConfiguration& m_Config;
spdlog::logger& m_Log;
- uint64_t m_PayloadAlignment = 1 << 4;
- uint64_t m_MaxBlockSize = 1L << 30; // 1 Gb
+ uint64_t m_PayloadAlignment;
+ uint64_t m_MaxBlockSize;
bool m_IsInitialized = false;
TCasLogFile<CasDiskIndexEntry> m_CasLog;
std::string m_ContainerBaseName;