Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/llfio/v2.0/mapped_file_handle.hpp')
-rw-r--r--include/llfio/v2.0/mapped_file_handle.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llfio/v2.0/mapped_file_handle.hpp b/include/llfio/v2.0/mapped_file_handle.hpp
index 758321c6..969ce864 100644
--- a/include/llfio/v2.0/mapped_file_handle.hpp
+++ b/include/llfio/v2.0/mapped_file_handle.hpp
@@ -202,7 +202,8 @@ public:
return {std::move(mfh)};
}
case creation::only_if_not_exist:
- case creation::truncate:
+ case creation::truncate_existing:
+ case creation::always_new:
{
// Don't attempt mapping now as file will be empty
mapped_file_handle mfh(std::move(fh));