Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPlugins.cpp @ 4189:15572f0bd743
run fsync() in OrthancPluginWriteFile()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 Sep 2020 08:27:17 +0200 |
parents | c02a2d9efbc2 |
children | 2d5209153b32 |
comparison
equal
deleted
inserted
replaced
4188:a2f1c97002fe | 4189:15572f0bd743 |
---|---|
3856 | 3856 |
3857 case _OrthancPluginService_WriteFile: | 3857 case _OrthancPluginService_WriteFile: |
3858 { | 3858 { |
3859 const _OrthancPluginWriteFile& p = | 3859 const _OrthancPluginWriteFile& p = |
3860 *reinterpret_cast<const _OrthancPluginWriteFile*>(parameters); | 3860 *reinterpret_cast<const _OrthancPluginWriteFile*>(parameters); |
3861 SystemToolbox::WriteFile(p.data, p.size, p.path); | 3861 SystemToolbox::WriteFile(p.data, p.size, p.path, true /* run fsync() */); |
3862 return true; | 3862 return true; |
3863 } | 3863 } |
3864 | 3864 |
3865 case _OrthancPluginService_GetErrorDescription: | 3865 case _OrthancPluginService_GetErrorDescription: |
3866 { | 3866 { |