From 52bf08afc4b9da9ccdd73089c8ebfc7bda859bd3 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 24 Mar 2022 22:41:46 +0100 Subject: Migration now works in larger disk IO chunks BasicFile and CasLogFile now has new explicit modes instead of create true/false --- zenstore/cidstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenstore/cidstore.cpp') diff --git a/zenstore/cidstore.cpp b/zenstore/cidstore.cpp index 8b53a8304..5ddf32e73 100644 --- a/zenstore/cidstore.cpp +++ b/zenstore/cidstore.cpp @@ -127,7 +127,7 @@ struct CidStore::Impl bool IsNew = !std::filesystem::exists(SlogPath); - m_LogFile.Open(SlogPath, IsNew); + m_LogFile.Open(SlogPath, IsNew ? CasLogFile::EMode::kTruncate : CasLogFile::EMode::kWrite); ZEN_DEBUG("Initializing index from '{}' ({})", SlogPath, NiceBytes(m_LogFile.GetLogSize())); -- cgit v1.2.3