Fix a wrong message.

It was saying the problem is the version of the PostgreSQL server while
it actually is because the MASTER REGISTER command was running on a
standby node
This commit is contained in:
Jaime Casanova
2011-11-10 09:30:42 -05:00
parent 0240cb2bfb
commit 55c7ea4b5e

View File

@@ -433,7 +433,7 @@ do_master_register(void)
log_info(_("%s connected to master, checking its state\n"), progname);
if (is_standby(conn))
{
log_err(_("%s needs master to be PostgreSQL 9.0 or better\n"), progname);
log_err(_("Trying to register as a master a standby node\n"), progname);
PQfinish(conn);
exit(ERR_BAD_CONFIG);
}