mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
repmgrd: handle manual failover mode correctly
This commit is contained in:
@@ -1995,7 +1995,8 @@ clear_node_info_list(NodeInfoList *nodes)
|
||||
/* close any open connections */
|
||||
for (cell = nodes->head; cell; cell = cell->next)
|
||||
{
|
||||
if (cell->node_info->conn != NULL)
|
||||
|
||||
if (PQstatus(cell->node_info->conn) == CONNECTION_OK)
|
||||
{
|
||||
PQfinish(cell->node_info->conn);
|
||||
cell->node_info->conn = NULL;
|
||||
|
||||
Reference in New Issue
Block a user