From e007a55967161dbb80a8f0a0e9482fe8ca751539 Mon Sep 17 00:00:00 2001 From: Christian Kruse Date: Wed, 22 Jan 2014 11:47:50 +0100 Subject: [PATCH] fix: do not use fsync() We do not need fsync(), the fflush() is enough to avoid concurrent logs. --- repmgrd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/repmgrd.c b/repmgrd.c index 1cce0802..df25de6b 100644 --- a/repmgrd.c +++ b/repmgrd.c @@ -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);