summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/file/shell.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-03-09 17:02:32 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-03-09 17:03:48 +0000
commitd3192948fe968fc4d6a8ec0e6fda232f265b3c4c (patch)
treeec29e620f35986ee17bbd6ad328cff0baad0d1a3 /ucb/source/ucp/file/shell.cxx
parent2d5c1a3f6de583629c29fc0eeea630c8f8a0eb89 (diff)
fdo#40607 - osl_syncFile having written, and avoid doing that on start
Diffstat (limited to 'ucb/source/ucp/file/shell.cxx')
-rw-r--r--ucb/source/ucp/file/shell.cxx4
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 )
{