aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/compactcas.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-12-01 07:57:13 -0500
committerGitHub <[email protected]>2023-12-01 13:57:13 +0100
commit2755b0dbfd47237e018048598e9c85c71b9a0736 (patch)
treeca1e55c43555fc2ff43455f8dfc4ac28daebe42b /src/zenstore/compactcas.h
parentadd separate PreCache step for GcReferenceChecker (#578) (diff)
downloadzen-2755b0dbfd47237e018048598e9c85c71b9a0736.tar.xz
zen-2755b0dbfd47237e018048598e9c85c71b9a0736.zip
use 32 bit offset and size in BlockStoreLocation (#581)
- Improvement: Reduce memory usage in GC and diskbucket flush
Diffstat (limited to 'src/zenstore/compactcas.h')
-rw-r--r--src/zenstore/compactcas.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h
index 3ed883801..932844da7 100644
--- a/src/zenstore/compactcas.h
+++ b/src/zenstore/compactcas.h
@@ -58,7 +58,7 @@ struct CasContainerStrategy final : public GcStorage, public GcReferenceStore
void Initialize(const std::filesystem::path& RootDirectory,
const std::string_view ContainerBaseName,
uint32_t MaxBlockSize,
- uint64_t Alignment,
+ uint32_t Alignment,
bool IsNewStore);
void Flush();
@@ -84,7 +84,7 @@ private:
LoggerRef m_Log;
GcManager& m_Gc;
std::filesystem::path m_RootDirectory;
- uint64_t m_PayloadAlignment = 1u << 4;
+ uint32_t m_PayloadAlignment = 1u << 4;
uint64_t m_MaxBlockSize = 1u << 28;
bool m_IsInitialized = false;
TCasLogFile<CasDiskIndexEntry> m_CasLog;