mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
Minor fixes to cascading standby failover.
This commit is contained in:
@@ -1254,9 +1254,8 @@ update_monitoring_history(void)
|
|||||||
* of reconnection strategies as different behaviour might be desirable
|
* of reconnection strategies as different behaviour might be desirable
|
||||||
* in different situations;
|
* in different situations;
|
||||||
* or maybe the option not to reconnect might be required?
|
* or maybe the option not to reconnect might be required?
|
||||||
*
|
|
||||||
* XXX check this handles replication slots gracefully
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
do_upstream_standby_failover(void)
|
do_upstream_standby_failover(void)
|
||||||
{
|
{
|
||||||
@@ -1397,8 +1396,7 @@ do_upstream_standby_failover(void)
|
|||||||
|
|
||||||
termPQExpBuffer(&event_details);
|
termPQExpBuffer(&event_details);
|
||||||
|
|
||||||
PQfinish(primary_conn);
|
/* keep the primary connection open */
|
||||||
primary_conn = NULL;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user