don't fsync by default; it's too slow

This commit is contained in:
Glenn Maynard
2004-02-20 06:01:12 +00:00
parent 53e264c10d
commit f790653b0f
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ RageFileObjDirect::~RageFileObjDirect()
/* Flush the output buffer. */
Flush();
if( !(parent.GetOpenMode() & RageFile::STREAMED) )
if( parent.GetOpenMode() & RageFile::SLOW_FLUSH )
{
/* Force a kernel buffer flush. */
if( fsync( fd ) == -1 )