mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
repmgrd: don't wait for WAL receiver to reconnect during failover
If the WAL receiver has been temporarily disabled, we don't want to wait for it to start up as it may not be able to at that point; we do however need to reset "wal_retrieve_retry_interval".
This commit is contained in:
@@ -2078,8 +2078,8 @@ do_primary_failover(void)
|
||||
/* Reenable WAL receiver, if disabled and node is not the promotion candidate */
|
||||
if (config_file_options.standby_disconnect_on_failover == true && election_result != ELECTION_WON)
|
||||
{
|
||||
// XXX check return value
|
||||
enable_wal_receiver(local_conn);
|
||||
/* adjust "wal_retrieve_retry_interval" but don't wait for WAL receiver to start */
|
||||
enable_wal_receiver(local_conn, false);
|
||||
}
|
||||
|
||||
if (election_result == ELECTION_CANCELLED)
|
||||
|
||||
Reference in New Issue
Block a user