mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
standby switchover: improve directory check failure handling
It's possible that the remote data directory check will fail if e.g. connection configuration is not consistent across all nodes. This modification ensures a database error connection is reported, rather than a spurios issue with the data directory configuration.
This commit is contained in:
@@ -766,7 +766,7 @@ do_node_check(void)
|
||||
{
|
||||
if (runtime_options.output_mode == OM_OPTFORMAT)
|
||||
{
|
||||
exit_optformat_error("CONNINFO_PARSE_ERROR",
|
||||
exit_optformat_error("CONNINFO_PARSE",
|
||||
ERR_BAD_CONFIG);
|
||||
}
|
||||
|
||||
@@ -804,7 +804,7 @@ do_node_check(void)
|
||||
*/
|
||||
if (PQstatus(conn) != CONNECTION_OK)
|
||||
{
|
||||
exit_optformat_error("CONNECTION_ERROR",
|
||||
exit_optformat_error("DB_CONNECTION",
|
||||
ERR_DB_CONN);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user