From 425839d764ababafe772104b806a1ee852ebdd56 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 22 Feb 2018 15:48:41 +0900 Subject: [PATCH] Fix typo in function name --- dbutils.c | 2 +- dbutils.h | 2 +- repmgr-action-node.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dbutils.c b/dbutils.c index 7e848242..d4393706 100644 --- a/dbutils.c +++ b/dbutils.c @@ -2170,7 +2170,7 @@ get_all_node_records_with_upstream(PGconn *conn, NodeInfoList *node_list) bool -get_downsteam_nodes_with_missing_slot(PGconn *conn, int this_node_id, NodeInfoList *node_list) +get_downstream_nodes_with_missing_slot(PGconn *conn, int this_node_id, NodeInfoList *node_list) { PQExpBufferData query; PGresult *res = NULL; diff --git a/dbutils.h b/dbutils.h index fe847a17..d5955d29 100644 --- a/dbutils.h +++ b/dbutils.h @@ -419,7 +419,7 @@ void get_downstream_node_records(PGconn *conn, int node_id, NodeInfoList *nodes void get_active_sibling_node_records(PGconn *conn, int node_id, int upstream_node_id, NodeInfoList *node_list); void get_node_records_by_priority(PGconn *conn, NodeInfoList *node_list); bool get_all_node_records_with_upstream(PGconn *conn, NodeInfoList *node_list); -bool get_downsteam_nodes_with_missing_slot(PGconn *conn, int this_node_id, NodeInfoList *noede_list); +bool get_downstream_nodes_with_missing_slot(PGconn *conn, int this_node_id, NodeInfoList *noede_list); bool create_node_record(PGconn *conn, char *repmgr_action, t_node_info *node_info); bool update_node_record(PGconn *conn, char *repmgr_action, t_node_info *node_info); diff --git a/repmgr-action-node.c b/repmgr-action-node.c index c6165ca6..daa1230d 100644 --- a/repmgr-action-node.c +++ b/repmgr-action-node.c @@ -313,9 +313,9 @@ do_node_status(void) { NodeInfoList missing_slots = T_NODE_INFO_LIST_INITIALIZER; - get_downsteam_nodes_with_missing_slot(conn, - config_file_options.node_id, - &missing_slots); + get_downstream_nodes_with_missing_slot(conn, + config_file_options.node_id, + &missing_slots); if (missing_slots.node_count > 0) {