diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-03-09 17:02:32 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-03-09 17:03:48 +0000 |
commit | d3192948fe968fc4d6a8ec0e6fda232f265b3c4c (patch) | |
tree | ec29e620f35986ee17bbd6ad328cff0baad0d1a3 /ucb | |
parent | 2d5c1a3f6de583629c29fc0eeea630c8f8a0eb89 (diff) |
fdo#40607 - osl_syncFile having written, and avoid doing that on start
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 725820d00ddd..86236f04d2a5 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -1909,6 +1909,10 @@ shell::write( sal_Int32 CommandId, } } while( nReadBytes == nRequestedBytes ); + aFile.sync(); // fsync / flush it to disk. + OSL_TRACE( "fsync'd file '%s'\n", + rtl::OUStringToOString( aUnqPath, RTL_TEXTENCODING_UTF8 ).getStr() ); + err = aFile.close(); if( err != osl::FileBase::E_None ) { |