From 84aad2361023e393d3580e5aa1b91bd54767fd6a Mon Sep 17 00:00:00 2001 From: Daniel Kristjansson Date: Wed, 17 Aug 2011 22:17:00 -0400 Subject: [PATCH] Drop fsync on flush in file logging, not supported on windows, and excessive anyway; a successful write() is already flushed to the OS. --- mythtv/libs/libmythbase/logging.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/mythtv/libs/libmythbase/logging.cpp b/mythtv/libs/libmythbase/logging.cpp index ee038d5a974..a2d8fc910cb 100644 --- a/mythtv/libs/libmythbase/logging.cpp +++ b/mythtv/libs/libmythbase/logging.cpp @@ -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);