Initial primary node monitoring

This commit is contained in:
Ian Barwick
2017-06-27 00:15:29 +09:00
parent 7845a1fb47
commit 78a16d746d
3 changed files with 85 additions and 3 deletions

View File

@@ -42,6 +42,9 @@ typedef enum {
RECORD_NOT_FOUND
} RecordStatus;
/*
* Struct to store node information
*/
@@ -227,5 +230,9 @@ RecordStatus get_slot_record(PGconn *conn, char *slot_name, t_replication_slot *
bool cancel_query(PGconn *conn, int timeout);
int wait_connection_availability(PGconn *conn, long long timeout);
/* node availability functions */
bool is_server_available(const char *conninfo);
#endif