mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 01:04:19 +01:00
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:
parent
61f87f5d3c
commit
3dbc32472b
2 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Add table
Reference in a new issue