Fix the problem that restore proxy connect to oracle sys database failed when part of the observers are inactive

This commit is contained in:
obdev
2023-05-25 14:40:57 +00:00
committed by ob-robot
parent 10925c4366
commit ed21e5ac27
5 changed files with 281 additions and 2 deletions

View File

@ -304,7 +304,7 @@ int ObLogRestoreProxyUtil::try_init(const uint64_t tenant_id,
}
}
}
if (OB_FAIL(ret) && (-ER_BAD_DB_ERROR == ret)) {
if (OB_FAIL(ret)) {
LOG_WARN("proxy connect to primary oceanbase db failed, then try connect to sys db");
(void)destroy();
if (OB_SUCC(init(tenant_id, server_list, user_name, user_password, ORACLE_DB))) {