Remove extraneous PQfinish()

This commit is contained in:
Ian Barwick
2016-05-12 14:05:44 +09:00
parent beda22d5f9
commit 247823db4d

View File

@@ -1580,7 +1580,10 @@ do_master_failover(void)
return;
}
/* Close the connection to this server */
PQfinish(my_local_conn);
my_local_conn = NULL;
/* XXX double-check the promotion candidate did become the new primary */
@@ -1596,9 +1599,6 @@ do_master_failover(void)
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);