Add event logging

This commit is contained in:
Ian Barwick
2017-04-24 23:20:23 +09:00
parent 8a04879953
commit ef5c6b37a4
3 changed files with 297 additions and 1 deletions

View File

@@ -156,5 +156,10 @@ int get_node_record(PGconn *conn, int node_id, 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);
/* 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);
bool _create_event_record(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details, t_event_info *event_info);
#endif