Witness server: on failover attempt to reconnect to new master

Previously it was just quitting.
This commit is contained in:
Ian Barwick
2015-01-12 11:23:20 +09:00
parent 437485bf6a
commit 5fb84b9627
2 changed files with 40 additions and 17 deletions

View File

@@ -443,7 +443,7 @@ get_master_connection(PGconn *standby_conn, char *cluster,
}
else
{
/* if it is a standby clear info */
/* if it is a standby, clear info */
PQclear(res2);
PQfinish(master_conn);
*master_id = -1;