Skip to content

Commit

Permalink
Drop fsync on flush in file logging, not supported on windows, and ex…
Browse files Browse the repository at this point in the history
…cessive anyway; a successful write() is already flushed to the OS.
  • Loading branch information
daniel-kristjansson committed Aug 18, 2011
1 parent e7003f9 commit 84aad23
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mythtv/libs/libmythbase/logging.cpp
Expand Up @@ -319,8 +319,6 @@ bool FileLogger::logmsg(LoggingItem *item)

int fd = (item->type & kStandardIO) ? 1 : m_fd;
int result = write( fd, line, strlen(line) );
if (item->type & kFlush)
fsync(fd);

deleteItem(item);

Expand Down

0 comments on commit 84aad23

Please sign in to comment.