fix: do not use fsync()

We do not need fsync(), the fflush() is enough to avoid concurrent
logs.
This commit is contained in:
Christian Kruse
2014-01-22 11:47:50 +01:00
parent d235c696af
commit e007a55967

View File

@@ -1012,7 +1012,6 @@ do_failover(void)
if (log_type == REPMGR_STDERR && *local_options.logfile)
{
fflush(stderr);
fsync(fileno(stderr));
}
r = system(local_options.promote_command);
@@ -1038,7 +1037,6 @@ do_failover(void)
if (log_type == REPMGR_STDERR && *local_options.logfile)
{
fflush(stderr);
fsync(fileno(stderr));
}
r = system(local_options.follow_command);