mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 00:46:29 +00:00
Check for existing master record before deleting it
Otherwise repmgr implies it's deleting a record which isn't actually there.
This commit is contained in:
@@ -67,5 +67,6 @@ bool create_node_record(PGconn *conn, char *action, int node, char *type, int u
|
||||
bool delete_node_record(PGconn *conn, int node, char *action);
|
||||
bool create_event_record(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details);
|
||||
bool update_node_record_set_upstream(PGconn *conn, char *cluster_name, int this_node_id, int new_upstream_node_id);
|
||||
PGresult * get_node_record(PGconn *conn, char *cluster, int node_id);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user