fix prepare version invalid bug when transaction is recovered from tx ctx table

This commit is contained in:
obdev 2022-12-26 04:38:10 +00:00 committed by ob-robot
parent 5c2ed71dd6
commit 8a48ba190b

View File

@ -1276,6 +1276,9 @@ int ObPartTransCtx::recover_tx_ctx_table_info(const ObTxCtxTableInfo &ctx_info)
if (ObTxState::REDO_COMPLETE == get_downstream_state()) {
sub_state_.set_info_log_submitted();
}
if (exec_info_.prepare_version_.is_valid()) {
mt_ctx_.set_trans_version(exec_info_.prepare_version_);
}
exec_info_.multi_data_source_.reset();
if (OB_FAIL(ret)) {
// do nothing