提交 0c58b8e2 编写于 作者: O obdev 提交者: wangzelin.wzl

Fix auto increment service get leader error

上级 f553280c
......@@ -375,11 +375,9 @@ 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))) {
if (OB_NOT_RUNNING == ret) {
ret = OB_NOT_MASTER;
} else {
LOG_WARN("get ls role fail", K(ret));
}
int tmp_ret = ret;
ret = OB_NOT_MASTER;
LOG_WARN("get ls role fail", K(ret), K(tmp_ret));
} else if (common::ObRole::LEADER == role) {
is_leader = true;
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册