repmgr: fix standby register --force when updating existing node record

This commit is contained in:
Ian Barwick
2017-06-15 21:46:30 +09:00
parent 318f1dac40
commit e0ea9c3be4
2 changed files with 4 additions and 1 deletions

View File

@@ -2119,7 +2119,7 @@ do_standby_register(void)
if (node_result)
{
if (node_record.active == true)
if (node_record.active == true && node_record.node_id != options.node)
{
log_err(_("Node %i exists already with node_name \"%s\"\n"),
node_record.node_id,