mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +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
|
||||
* recreate the recovery.conf file
|
||||
*/
|
||||
host = PQhost(master_conn);
|
||||
masterport = PQport(master_conn);
|
||||
host = malloc(20);
|
||||
masterport = malloc(10);
|
||||
strcpy(host, PQhost(master_conn));
|
||||
strcpy(masterport, PQport(master_conn));
|
||||
PQfinish(master_conn);
|
||||
|
||||
if (verbose)
|
||||
|
||||
Reference in New Issue
Block a user