fix: store the master connection user name on standby follow

This commit is contained in:
Warren Moore
2014-03-05 16:49:56 +00:00
parent 98c7635fb5
commit 7e55ce737d

View File

@@ -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);