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/blockstore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenstore/blockstore.cpp') diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp index 441b5e926..e43c3a00f 100644 --- a/zenstore/blockstore.cpp +++ b/zenstore/blockstore.cpp @@ -42,7 +42,7 @@ BlockStoreFile::InternalOpen() { return; } - m_File.Open(m_Path, false); + m_File.Open(m_Path, BasicFile::EMode::kDelete); void* FileHandle = m_File.Handle(); m_IoBuffer = IoBuffer(IoBuffer::File, FileHandle, 0, m_File.FileSize()); } @@ -65,7 +65,7 @@ BlockStoreFile::Create(uint64_t InitialSize) CreateDirectories(ParentPath); } - m_File.Open(m_Path, true); + m_File.Open(m_Path, BasicFile::EMode::kTruncateDelete); if (InitialSize > 0) { m_File.SetFileSize(InitialSize); -- cgit v1.2.3