mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
fix inverted log message
When trying to follow a new primary, the type of the new primary is checked. When it is *not* of type primary, a warning is logged and the follow attempt is aborted. As far as I can tell, the message itself is exactly the opposite of what it should be: The node is not primary, thus it is standby / "in recovery". Feel free to correct me if I’m misunderstanding.
This commit is contained in:
@@ -3655,7 +3655,7 @@ follow_new_primary(int new_primary_id)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
new_primary_ok = false;
|
new_primary_ok = false;
|
||||||
log_warning(_("new primary is not in recovery"));
|
log_warning(_("new primary is in recovery"));
|
||||||
close_connection(&upstream_conn);
|
close_connection(&upstream_conn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3848,7 +3848,7 @@ witness_follow_new_primary(int new_primary_id)
|
|||||||
break;
|
break;
|
||||||
case RECTYPE_STANDBY:
|
case RECTYPE_STANDBY:
|
||||||
new_primary_ok = false;
|
new_primary_ok = false;
|
||||||
log_warning(_("new primary is not in recovery"));
|
log_warning(_("new primary is in recovery"));
|
||||||
break;
|
break;
|
||||||
case RECTYPE_UNKNOWN:
|
case RECTYPE_UNKNOWN:
|
||||||
new_primary_ok = false;
|
new_primary_ok = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user