[scn] fix failure of mittest after refresh feature scn

This commit is contained in:
obdev
2022-11-28 01:46:42 +00:00
committed by ob-robot
parent 49a02f3304
commit 54b64a7263
1898 changed files with 255804 additions and 280809 deletions

View File

@ -375,9 +375,11 @@ int ObGlobalAutoIncService::check_leader_(const uint64_t tenant_id, bool &is_lea
ret = OB_NOT_MASTER;
LOG_WARN("cache ls is null", K(ret));
} else if (OB_FAIL(cache_ls_->get_log_handler()->get_role(role, proposal_id))) {
int tmp_ret = ret;
ret = OB_NOT_MASTER;
LOG_WARN("get ls role fail", K(ret), K(tmp_ret));
if (OB_NOT_RUNNING == ret) {
ret = OB_NOT_MASTER;
} else {
LOG_WARN("get ls role fail", K(ret));
}
} else if (common::ObRole::LEADER == role) {
is_leader = true;
} else {