mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Really fix STANDBY FOLLOW this time.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -1127,8 +1127,10 @@ do_standby_follow(void)
|
|||||||
* before closing the connection because we will need them to
|
* before closing the connection because we will need them to
|
||||||
* recreate the recovery.conf file
|
* recreate the recovery.conf file
|
||||||
*/
|
*/
|
||||||
host = PQhost(master_conn);
|
host = malloc(20);
|
||||||
masterport = PQport(master_conn);
|
masterport = malloc(10);
|
||||||
|
strcpy(host, PQhost(master_conn));
|
||||||
|
strcpy(masterport, PQport(master_conn));
|
||||||
PQfinish(master_conn);
|
PQfinish(master_conn);
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|||||||
Reference in New Issue
Block a user