From 8a27c89d183f778e91afdc7d07f919e59389d56d Mon Sep 17 00:00:00 2001 From: Tom Janson Date: Thu, 5 Mar 2020 14:15:09 +0100 Subject: [PATCH] repmgrd: fix inverted log message Warning is emitted when the node in question is in recovery. --- repmgrd-physical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repmgrd-physical.c b/repmgrd-physical.c index 2ec12587..3a6d3cfb 100644 --- a/repmgrd-physical.c +++ b/repmgrd-physical.c @@ -3683,7 +3683,7 @@ follow_new_primary(int new_primary_id) else { new_primary_ok = false; - log_warning(_("new primary is not in recovery")); + log_warning(_("new primary is in recovery")); close_connection(&upstream_conn); } } @@ -3876,7 +3876,7 @@ witness_follow_new_primary(int new_primary_id) break; case RECTYPE_STANDBY: new_primary_ok = false; - log_warning(_("new primary is not in recovery")); + log_warning(_("new primary is in recovery")); break; case RECTYPE_UNKNOWN: new_primary_ok = false;