repmgrd: initiate primary monitoring when local node is promoted manually

This commit is contained in:
Ian Barwick
2017-07-19 11:15:38 +09:00
parent 9558d0d3b8
commit 23e6440dfd
3 changed files with 139 additions and 40 deletions

View File

@@ -1470,9 +1470,7 @@ void _populate_node_records(PGresult *res, NodeInfoList *node_list)
{
int i;
node_list->head = NULL;
node_list->tail = NULL;
node_list->node_count = 0;
clear_node_info_list(node_list);
if (PQresultStatus(res) != PGRES_TUPLES_OK)
{