Fix declaration of "create_checkpoint()"

This commit is contained in:
Ian Barwick
2018-02-09 12:17:13 +09:00
parent dd9df04334
commit 9ae8f5780b
2 changed files with 4 additions and 2 deletions

View File

@@ -1721,7 +1721,7 @@ create_event_record(PGconn *conn, t_configuration_options *options, int node_id,
return success;
}
bool
void
create_checkpoint(PGconn *conn)
{
char sqlquery[MAXLEN];
@@ -1738,9 +1738,11 @@ create_checkpoint(PGconn *conn)
PQfinish(conn);
exit(ERR_DB_QUERY);
}
log_notice(_("CHECKPOINT created\n"));
}
bool
update_node_record(PGconn *conn, char *action, int node, char *type, int upstream_node, char *cluster_name, char *node_name, char *conninfo, int priority, char *slot_name, bool active)
{

View File

@@ -135,7 +135,7 @@ bool update_node_record(PGconn *conn, char *action, int node, char *type,
bool update_node_record_status(PGconn *conn, char *cluster_name, int this_node_id, char *type, int upstream_node_id, bool active);
bool update_node_record_set_upstream(PGconn *conn, char *cluster_name, int this_node_id, int new_upstream_node_id);
bool create_event_record(PGconn *conn, t_configuration_options *options, int node_id, char *event, bool successful, char *details);
bool create_checkpoint(PGconn *conn);
void create_checkpoint(PGconn *conn);
int get_node_replication_state(PGconn *conn, char *node_name, char *output);
t_server_type parse_node_type(const char *type);