aboutsummaryrefslogtreecommitdiff
path: root/zenstore
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-03-21 09:52:44 +0100
committerDan Engelbrecht <[email protected]>2022-03-31 11:28:33 +0200
commitc6e5254f900722f9524e4ce8ed9372cde964e09a (patch)
treeec6b17af9e4cbdcd331187233a2a8496f4baf0da /zenstore
parentremove test code (diff)
downloadzen-c6e5254f900722f9524e4ce8ed9372cde964e09a.tar.xz
zen-c6e5254f900722f9524e4ce8ed9372cde964e09a.zip
Change block size of compactcas stores
Diffstat (limited to 'zenstore')
-rw-r--r--zenstore/cas.cpp4
-rw-r--r--zenstore/compactcas.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/zenstore/cas.cpp b/zenstore/cas.cpp
index fef206f2d..38774ee01 100644
--- a/zenstore/cas.cpp
+++ b/zenstore/cas.cpp
@@ -150,8 +150,8 @@ CasImpl::Initialize(const CasStoreConfiguration& InConfig)
// Initialize payload storage
m_LargeStrategy.Initialize(IsNewStore);
- m_TinyStrategy.Initialize("tobs", CasContainerStrategy::DefaultMaxBlockSize, 16, IsNewStore);
- m_SmallStrategy.Initialize("sobs", CasContainerStrategy::DefaultMaxBlockSize, 4096, IsNewStore);
+ m_TinyStrategy.Initialize("tobs", 1u << 28, 16, IsNewStore); // 256 Mb per block
+ m_SmallStrategy.Initialize("sobs", 1u << 30, 4096, IsNewStore); // 1 Gb per block
}
bool
diff --git a/zenstore/compactcas.h b/zenstore/compactcas.h
index 1fddbf43a..9f354fbbe 100644
--- a/zenstore/compactcas.h
+++ b/zenstore/compactcas.h
@@ -95,8 +95,6 @@ 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();