[master][xa][tx-route] fix from normal tx switch to xa trans missed return static

This commit is contained in:
chinaxing
2023-03-22 04:12:12 +00:00
committed by ob-robot
parent 5ac4cddd5c
commit 05dc3366a4

View File

@ -854,8 +854,9 @@ int ObTransService::calc_txn_free_route(ObTxDesc *tx, ObTxnFreeRouteCtx &ctx)
//
if (OB_SUCC(ret)) {
if (return_normal_state) {
if (is_xa && is_tx_start) {
// XA START same as START TX
if (is_xa && (is_tx_start || is_tx_switch)) {
// XA START same as START TX, its state may be synced (instead of executed on local)
// hence, we forcedly set to changed
ctx.static_changed_ = true;
ctx.dynamic_changed_ = true;
ctx.parts_changed_ = true;