have new primary communicate to standbys

This commit is contained in:
Ian Barwick
2017-06-30 21:45:25 +09:00
parent 1857e23fef
commit debe5a18c5
5 changed files with 178 additions and 9 deletions

View File

@@ -247,6 +247,8 @@ NodeVotingStatus get_voting_status(PGconn *conn);
int request_vote(PGconn *conn, t_node_info *this_node, t_node_info *other_node, int electoral_term);
int set_voting_status_initiated(PGconn *conn);
bool announce_candidature(PGconn *conn, t_node_info *this_node, t_node_info *other_node, int electoral_term);
void notify_follow_primary(PGconn *conn, int primary_node_id);
bool get_new_primary(PGconn *conn, int *primary_node_id);
/* replication status functions */