mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +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)
|
if (log_type == REPMGR_STDERR && *local_options.logfile)
|
||||||
{
|
{
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
fsync(fileno(stderr));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r = system(local_options.promote_command);
|
r = system(local_options.promote_command);
|
||||||
@@ -1038,7 +1037,6 @@ do_failover(void)
|
|||||||
if (log_type == REPMGR_STDERR && *local_options.logfile)
|
if (log_type == REPMGR_STDERR && *local_options.logfile)
|
||||||
{
|
{
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
fsync(fileno(stderr));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r = system(local_options.follow_command);
|
r = system(local_options.follow_command);
|
||||||
|
|||||||
Reference in New Issue
Block a user