Reset "wal_retrieve_retry_interval" for all nodes

This commit is contained in:
Ian Barwick
2019-03-05 14:57:24 +09:00
committed by Ian Barwick
parent 280654bed6
commit b320c1f0ae

View File

@@ -2075,8 +2075,8 @@ do_primary_failover(void)
log_debug("election result: %s", _print_election_result(election_result));
/* 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)
/* Reenable WAL receiver, if disabled */
if (config_file_options.standby_disconnect_on_failover == true)
{
/* adjust "wal_retrieve_retry_interval" but don't wait for WAL receiver to start */
enable_wal_receiver(local_conn, false);