summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-06-21 11:30:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-25 13:32:04 +0200
commit68163dd6ab34699848c6cc9e8fa52dc38262c380 (patch)
tree0f25240f886ef89cdb64387b5d67dfe723dd6486 /tools
parent3837434dfb3a673a05d91b063e7ac2025589f32f (diff)
make SvFileStream::FlushData __actually__ flush to disk
which I noticed while debugging another change where I need the flush to actually do something useful. Change-Id: I61621cbfe68a404c7fae851760154b398997fe61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117548 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit c8644ab3fcc9a911a9182a1b6a24a17610a2105d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117852
Diffstat (limited to 'tools')
-rw-r--r--tools/source/stream/strmunx.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index ca5edc308602..e034f53ac33b 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -290,8 +290,10 @@ sal_uInt64 SvFileStream::SeekPos(sal_uInt64 const nPos)
void SvFileStream::FlushData()
{
- // does not exist locally
-}
+ auto rc = osl_syncFile(pInstanceData->rHandle);
+ if (rc != osl_File_E_None)
+ SetError( ::GetSvError( rc ));
+ }
bool SvFileStream::LockFile()
{