From 3c8bab97d8abc6ccdcf0bbf9679d0046dd382377 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 22 May 2019 17:26:34 +0900 Subject: [PATCH] Fix variable declarations --- repmgr-action-node.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repmgr-action-node.c b/repmgr-action-node.c index 1f84c7d3..77255d4a 100644 --- a/repmgr-action-node.c +++ b/repmgr-action-node.c @@ -2562,8 +2562,8 @@ do_node_rejoin(void) for (; i < config_file_options.node_rejoin_timeout; i++) { - NodeStatus node_attached = is_downstream_node_attached(primary_conn, - config_file_options.node_name); + NodeAttached node_attached = is_downstream_node_attached(primary_conn, + config_file_options.node_name); if (node_attached == NODE_ATTACHED) { @@ -2613,7 +2613,7 @@ do_node_rejoin(void) else { /* -W/--no-wait provided - check once */ - NodeStatus node_attached = is_downstream_node_attached(primary_conn, config_file_options.node_name); + NodeAttached node_attached = is_downstream_node_attached(primary_conn, config_file_options.node_name); if (node_attached == NODE_ATTACHED) success = true; }