[CP] fix tx-free-route return state for session sync check

This commit is contained in:
chinaxing
2023-11-30 12:17:45 +00:00
committed by ob-robot
parent f3ee7314f1
commit 9e5b23b63e

View File

@ -1286,8 +1286,8 @@ int ObTransService::txn_free_route__get_##name##_state(ObTxDesc *tx, const ObTxn
int ret = OB_SUCCESS; \
if (OB_FAIL(encode_i64(buf, len, pos, (tx ? tx->tx_id_.get_id() : 0)))) { \
} else if (OB_NOT_NULL(tx)) { \
if (OB_FAIL(encoded_length_bool(tx->in_tx_for_free_route()))) { \
} else if (OB_FAIL(encoded_length_i64(ctx.global_version_))) { \
if (OB_FAIL(encode_bool(buf, len, pos, tx->in_tx_for_free_route()))) { \
} else if (OB_FAIL(encode_i64(buf, len, pos, ctx.global_version_))) { \
} else if (tx->tx_id_.is_valid() && OB_FAIL(tx->encode_##name##_state(buf, len, pos))) { \
} \
} \