From ab6702891a1f9bb2381df1846de4e9a31d438c72 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 1 Sep 2017 13:09:17 +0900 Subject: [PATCH] Minor fixes to cascading standby failover. --- repmgrd-physical.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/repmgrd-physical.c b/repmgrd-physical.c index 7dac2bd8..c27578da 100644 --- a/repmgrd-physical.c +++ b/repmgrd-physical.c @@ -1254,9 +1254,8 @@ update_monitoring_history(void) * of reconnection strategies as different behaviour might be desirable * in different situations; * or maybe the option not to reconnect might be required? - * - * XXX check this handles replication slots gracefully */ + static bool do_upstream_standby_failover(void) { @@ -1397,8 +1396,7 @@ do_upstream_standby_failover(void) termPQExpBuffer(&event_details); - PQfinish(primary_conn); - primary_conn = NULL; + /* keep the primary connection open */ return true; }