aboutsummaryrefslogtreecommitdiff
path: root/zenstore/cas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenstore/cas.cpp')
-rw-r--r--zenstore/cas.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/zenstore/cas.cpp b/zenstore/cas.cpp
index a90e45c04..0e1d5b242 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", 16, IsNewStore);
- m_SmallStrategy.Initialize("sobs", 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
@@ -164,7 +164,7 @@ CasImpl::OpenOrCreateManifest()
std::error_code Ec;
BasicFile ManifestFile;
- ManifestFile.Open(ManifestPath.c_str(), /* IsCreate */ false, Ec);
+ ManifestFile.Open(ManifestPath.c_str(), BasicFile::Mode::kRead, Ec);
bool ManifestIsOk = false;
@@ -236,7 +236,7 @@ CasImpl::UpdateManifest()
ZEN_TRACE("Writing new manifest to '{}'", ManifestPath);
BasicFile Marker;
- Marker.Open(ManifestPath.c_str(), /* IsCreate */ true);
+ Marker.Open(ManifestPath.c_str(), BasicFile::Mode::kTruncate);
Marker.Write(m_ManifestObject.GetBuffer(), 0);
}