[Libreoffice-commits] core.git: tools/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jun 21 10:45:22 UTC 2021
tools/source/stream/strmunx.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit c8644ab3fcc9a911a9182a1b6a24a17610a2105d
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jun 21 11:30:06 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jun 21 12:44:46 2021 +0200
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 at collabora.co.uk>
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 40cbe382213a..0b745e69b140 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -288,8 +288,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()
{
More information about the Libreoffice-commits
mailing list