New bif log_set_buf() to set the buffering state for a stream.

This commit is contained in:
Robin Sommer 2011-02-21 17:33:29 -08:00
parent 434f57f85f
commit cf148c8a25
8 changed files with 78 additions and 37 deletions

View file

@ -125,6 +125,9 @@ bool LogWriterAscii::DoWrite(int num_fields, LogField** fields, LogVal** vals)
return false;
}
if ( IsBuf() )
fflush(file);
return true;
}
@ -133,8 +136,10 @@ bool LogWriterAscii::DoRotate(string rotated_path)
return true;
}
void LogWriterAscii::DoSetFlushing(bool enabled)
bool LogWriterAscii::DoSetBuf(bool enabled)
{
// Nothing to do.
return true;
}