mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
Merge pull request #14 from wamonite/fix_follow_user
fix: store the master connection user name on standby follow
This commit is contained in:
1
repmgr.c
1
repmgr.c
@@ -1494,6 +1494,7 @@ do_standby_follow(void)
|
||||
*/
|
||||
strncpy(runtime_options.host, PQhost(master_conn), MAXLEN);
|
||||
strncpy(runtime_options.masterport, PQport(master_conn), MAXLEN);
|
||||
strncpy(runtime_options.username, PQuser(master_conn), MAXLEN);
|
||||
PQfinish(master_conn);
|
||||
|
||||
log_info(_("%s Changing standby's master\n"),progname);
|
||||
|
||||
Reference in New Issue
Block a user