mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
Add a hint if 'standby register' fails due to insert error
This commit is contained in:
5
repmgr.c
5
repmgr.c
@@ -878,6 +878,11 @@ do_standby_register(void)
|
|||||||
|
|
||||||
if(record_created == false)
|
if(record_created == false)
|
||||||
{
|
{
|
||||||
|
if(!runtime_options.force)
|
||||||
|
{
|
||||||
|
log_notice(_("HINT: use option -F/--force to overwrite an existing node record\n"));
|
||||||
|
}
|
||||||
|
|
||||||
PQfinish(master_conn);
|
PQfinish(master_conn);
|
||||||
PQfinish(conn);
|
PQfinish(conn);
|
||||||
exit(ERR_BAD_CONFIG);
|
exit(ERR_BAD_CONFIG);
|
||||||
|
|||||||
Reference in New Issue
Block a user