mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
fix: set connection to NULL when finishing it
This will avoid CloseConnections() to try to close an already closed connection.
This commit is contained in:
@@ -956,6 +956,7 @@ do_failover(void)
|
|||||||
|
|
||||||
/* Close the connection to this server */
|
/* Close the connection to this server */
|
||||||
PQfinish(myLocalConn);
|
PQfinish(myLocalConn);
|
||||||
|
myLocalConn = NULL;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* determine which one is the best candidate to promote to primary
|
* determine which one is the best candidate to promote to primary
|
||||||
|
|||||||
Reference in New Issue
Block a user