diff options
| author | Dan Engelbrecht <[email protected]> | 2022-03-24 22:41:46 +0100 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-03-31 11:29:27 +0200 |
| commit | 52bf08afc4b9da9ccdd73089c8ebfc7bda859bd3 (patch) | |
| tree | 87fdb172c98fd05b5c64398cce6b1c6be6db257e /zenstore/cidstore.cpp | |
| parent | clean up paths (diff) | |
| download | zen-52bf08afc4b9da9ccdd73089c8ebfc7bda859bd3.tar.xz zen-52bf08afc4b9da9ccdd73089c8ebfc7bda859bd3.zip | |
Migration now works in larger disk IO chunks
BasicFile and CasLogFile now has new explicit modes instead of create true/false
Diffstat (limited to 'zenstore/cidstore.cpp')
| -rw-r--r-- | zenstore/cidstore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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())); |