repmgr standby follow: ensure data directory provided, if required

Required when using host parameters to reactivate a stopped node;
we have no other way of knowing the data directory.
This commit is contained in:
Ian Barwick
2017-06-23 13:42:07 +09:00
parent ae67e086a4
commit a5d15c22a8
2 changed files with 18 additions and 1 deletions

View File

@@ -1435,7 +1435,8 @@ do_standby_follow(void)
}
}
log_info(_("changing standby's master to node %i"), master_id);
log_info(_("changing node %i's master to node %i"),
config_file_options.node_id, master_id);
if (!create_recovery_file(data_dir, &recovery_conninfo))
{