General code cleanup

This commit is contained in:
Ian Barwick
2017-08-16 23:09:02 +09:00
parent 0ac16f7630
commit a0bad5fdc0
3 changed files with 30 additions and 7 deletions

View File

@@ -1138,7 +1138,11 @@ _get_primary_connection(PGconn *conn,
}
if (PQstatus(remote_conn) != CONNECTION_OK)
{
PQfinish(remote_conn);
remote_conn = NULL;
continue;
}
recovery_type = get_recovery_type(remote_conn);