mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 16:16:29 +00:00
repmgr: fix standby register --force when updating existing node record
This commit is contained in:
3
HISTORY
3
HISTORY
@@ -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
|
3.3.2 2017-06-01
|
||||||
Add support for PostgreSQL 10 (Ian)
|
Add support for PostgreSQL 10 (Ian)
|
||||||
repmgr: ensure --replication-user option is honoured when passing database
|
repmgr: ensure --replication-user option is honoured when passing database
|
||||||
|
|||||||
2
repmgr.c
2
repmgr.c
@@ -2119,7 +2119,7 @@ do_standby_register(void)
|
|||||||
|
|
||||||
if (node_result)
|
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"),
|
log_err(_("Node %i exists already with node_name \"%s\"\n"),
|
||||||
node_record.node_id,
|
node_record.node_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user