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

@@ -1,3 +1,6 @@
3.3.3 2017-06
repmgr: fix `standby register --force` when updating existing node record (Ian)
3.3.2 2017-06-01
Add support for PostgreSQL 10 (Ian)
repmgr: ensure --replication-user option is honoured when passing database

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,