From 923c5ed0b5eda5fa81d7e6ad0c57c1155cfa107b Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Fri, 17 Apr 2020 12:59:32 +0200 Subject: [PATCH] DSYNC is too slow for writing 16M --- core-buffer/src/BinaryWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-buffer/src/BinaryWriter.cpp b/core-buffer/src/BinaryWriter.cpp index 633383f..39ecfd2 100644 --- a/core-buffer/src/BinaryWriter.cpp +++ b/core-buffer/src/BinaryWriter.cpp @@ -89,7 +89,7 @@ void BinaryWriter::open_file(const std::string& filename) WriterUtils::create_destination_folder(filename); - output_file_fd_ = ::open(filename.c_str(), O_WRONLY | O_CREAT | O_DSYNC, + output_file_fd_ = ::open(filename.c_str(), O_WRONLY | O_CREAT, S_IRWXU | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); if (output_file_fd_ < 0) { stringstream err_msg;