changeset 4189:15572f0bd743

run fsync() in OrthancPluginWriteFile()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 15 Sep 2020 08:27:17 +0200
parents a2f1c97002fe
children 9ce5c89328f5 7ecaada8fbcc
files OrthancServer/Plugins/Engine/OrthancPlugins.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Mon Sep 14 20:34:47 2020 +0200
+++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp	Tue Sep 15 08:27:17 2020 +0200
@@ -3858,7 +3858,7 @@
       {
         const _OrthancPluginWriteFile& p =
           *reinterpret_cast<const _OrthancPluginWriteFile*>(parameters);
-        SystemToolbox::WriteFile(p.data, p.size, p.path);
+        SystemToolbox::WriteFile(p.data, p.size, p.path, true /* run fsync() */);
         return true;
       }