BUG#22310 dead/deceptive code in FileLogHandler::writeFooter() and File_class::flush

make the File_class::flush() method actually flush the stdio buffers.
This commit is contained in:
stewart@willster.(none) 2006-10-27 18:08:08 +10:00
parent 61f87f5d3c
commit 3dbc32472b
2 changed files with 1 additions and 7 deletions

View file

@ -125,8 +125,6 @@ FileLogHandler::writeFooter()
}
callCount++;
// Needed on Cello since writes to the flash disk does not happen until
// we flush and fsync.
m_pLogFile->flush();
}

View file

@ -188,10 +188,6 @@ File_class::flush() const
::fflush(m_file);
return ::fsync(::fileno(m_file));
#else
return 0;
return ::fflush(m_file);;
#endif
}
//
// PRIVATE
//