Add name to nodes and show it for the standby in repl_status.

This commit is contained in:
Jaime Casanova
2011-07-26 16:58:02 -05:00
parent 020e17b059
commit 276c947202
4 changed files with 35 additions and 20 deletions

View File

@@ -203,6 +203,12 @@ reload_configuration(char *config_file, t_configuration_options *orig_options)
return false;
}
if (new_options.standby_name != orig_options->standby_name)
{
log_warning(_("\nCannot change standby name, will keep current configuration.\n"));
return false;
}
if (new_options.failover != MANUAL_FAILOVER && new_options.failover != AUTOMATIC_FAILOVER)
{
log_warning(_("\nNew value for failover is not valid. Should be MANUAL or AUTOMATIC.\n"));