mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-23 07:06:30 +00:00
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:
2
repmgr.c
2
repmgr.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user