From d80763f97455d5df928169a7b5e9a73aa2c8a110 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 9 Nov 2017 13:42:13 +0900 Subject: [PATCH] repmgrd: misc fixes --- repmgrd-physical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgrd-physical.c b/repmgrd-physical.c index d1496aa1..8f912555 100644 --- a/repmgrd-physical.c +++ b/repmgrd-physical.c @@ -595,7 +595,7 @@ monitor_streaming_standby(void) upstream_node_unreachable_elapsed); log_notice("%s", event_details.data); - create_event_notification(local_conn, + create_event_notification(upstream_conn, &config_file_options, config_file_options.node_id, "repmgrd_upstream_reconnect", @@ -1840,7 +1840,7 @@ do_election(void) { log_notice(_("this node is not configured for automatic failover so will not be considered as promotion candidate")); - return ELECTION_NOT_CANDIDATE; + return ELECTION_LOST; } /* node priority is set to zero - don't ever become a candidate */