Validate --node-id/--node-name, if provided and acceptable

Also update --help output.
This commit is contained in:
Ian Barwick
2017-04-26 21:18:28 +09:00
parent 2ed5393209
commit cd0509194d
3 changed files with 99 additions and 3 deletions

View File

@@ -153,6 +153,8 @@ t_server_type parse_node_type(const char *type);
const char * get_node_type_string(t_server_type type);
int get_node_record(PGconn *conn, int node_id, t_node_info *node_info);
int get_node_record_by_name(PGconn *conn, const char *node_name, t_node_info *node_info);
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);