Merge pull request #14 from wamonite/fix_follow_user

fix: store the master connection user name on standby follow
This commit is contained in:
Christian Kruse
2014-03-06 15:20:02 +01:00

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