standby switchover: improve archive check error handling

Explicitly log if a database connection failure caused the check
to fail.

It's unlikely this situation will be encountered, as the data directory
check will already have run and checked for connection failure, however
there's a small chance the connection could fail between checks.
This commit is contained in:
Ian Barwick
2020-04-15 14:00:50 +09:00
parent 32dde4eaaf
commit cfd35852b7
2 changed files with 21 additions and 7 deletions

View File

@@ -806,7 +806,6 @@ do_node_check(void)
{
exit_optformat_error("DB_CONNECTION",
ERR_DB_CONN);
}
if (get_node_record(conn, config_file_options.node_id, &node_info) != RECORD_FOUND)