提交 badae30b 编写于 作者: O obdev 提交者: OB-robot

[4.1][xa] stop tx before release tx for loosely coupled xa trans in heartbeat test

上级 8f80cb71
......@@ -2141,6 +2141,9 @@ int ObXACtx::try_heartbeat()
// exit only
// no need to delete xa records
// if xa records exist, we can rely on garbage collection
if (OB_FAIL(MTL(ObTransService*)->stop_tx(*tx_desc_))) {
TRANS_LOG(WARN, "fail to stop transaction", K(ret), K(*this));
}
(void)set_exiting_();
} else if (now > branch_info.last_hb_ts_ + XA_HB_THRESHOLD) {
branch_info.unrespond_msg_cnt_++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册