mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Remove extraneous PQfinish()
This commit is contained in:
@@ -1572,7 +1572,10 @@ do_master_failover(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Close the connection to this server */
|
||||||
PQfinish(my_local_conn);
|
PQfinish(my_local_conn);
|
||||||
|
my_local_conn = NULL;
|
||||||
|
|
||||||
/* XXX double-check the promotion candidate did become the new primary */
|
/* XXX double-check the promotion candidate did become the new primary */
|
||||||
|
|
||||||
@@ -1588,9 +1591,6 @@ do_master_failover(void)
|
|||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close the connection to this server */
|
|
||||||
PQfinish(my_local_conn);
|
|
||||||
my_local_conn = NULL;
|
|
||||||
|
|
||||||
log_debug(_("executing follow command: \"%s\"\n"), local_options.follow_command);
|
log_debug(_("executing follow command: \"%s\"\n"), local_options.follow_command);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user