fix the core caused by repeated set xid in create tx ctx in the pdml scene

This commit is contained in:
obdev
2023-03-21 16:11:53 +00:00
committed by ob-robot
parent 46325a10d6
commit 6bb3ee6c54

View File

@ -1204,7 +1204,7 @@ int ObTransService::create_tx_ctx_(const share::ObLSID &ls_id,
if (OB_FAIL(ret)) {
TRANS_LOG(WARN, "get tx ctx from mgr fail", K(ret), K(tx.tx_id_), K(ls_id), K(tx), K(arg));
ctx = NULL;
} else if (!tx.xid_.empty()) {
} else if (!tx.xid_.empty() && !existed) {
ctx->exec_info_.xid_ = tx.xid_;
}
TRANS_LOG(TRACE, "create tx ctx", K(ret), K(ls_id), K(tx));