Initial implementation of "standby promote"

This commit is contained in:
Ian Barwick
2017-05-10 09:24:51 +09:00
parent c61d16def6
commit 51da33a260
4 changed files with 239 additions and 8 deletions

View File

@@ -185,6 +185,8 @@ bool create_node_record(PGconn *conn, char *repmgr_action, t_node_info *node_in
bool update_node_record(PGconn *conn, char *repmgr_action, t_node_info *node_info);
bool delete_node_record(PGconn *conn, int node);
bool update_node_record_set_master(PGconn *conn, int this_node_id);
/* event record functions */
bool create_event_record(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details);
bool create_event_record_extended(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details, t_event_info *event_info);