mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 08:56:29 +00:00
repmgr standby promote: suppress master database connection error message
Otherwise the first line of output is an ERROR, which is confusing, even though it's expected.
This commit is contained in:
@@ -1084,7 +1084,7 @@ do_standby_promote(void)
|
||||
|
||||
|
||||
/* we also need to check if there isn't any master already */
|
||||
current_master_conn = get_master_connection(conn, &existing_master_id, NULL);
|
||||
current_master_conn = get_master_connection_quiet(conn, &existing_master_id, NULL);
|
||||
|
||||
if (PQstatus(current_master_conn) == CONNECTION_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user