mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
fix: do not use fsync()
We do not need fsync(), the fflush() is enough to avoid concurrent logs.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user