fix the temporary scheduler was mistakenly started the hb service

This commit is contained in:
obdev
2022-11-02 22:35:50 +00:00
committed by wangzelin.wzl
parent c71cd9107a
commit 0a044c272d

View File

@ -2115,6 +2115,8 @@ int ObXACtx::try_heartbeat()
const int64_t now = ObTimeUtility::current_time();
if (original_sche_addr_ != GCTX.self_addr()) {
// temproray scheduler, do nothing
} else if (OB_ISNULL(xa_branch_info_) && xa_trans_state_ > ObXATransState::IDLE) {
// do nothing
} else if (OB_ISNULL(xa_branch_info_)) {
ret = OB_ERR_UNEXPECTED;
TRANS_LOG(ERROR, "unexpected branch count", K(ret), K(*this));