generate dup_table prepare version with other participants

This commit is contained in:
KyrielightWei
2023-06-05 07:18:50 +00:00
committed by ob-robot
parent 808cb15bda
commit 3e943091ab

View File

@ -2414,7 +2414,9 @@ int ObPartTransCtx::generate_prepare_version_()
TRANS_LOG(WARN, "invalid dup_table_follower_max_read_version_", K(ret),
K(dup_table_follower_max_read_version_), KPC(this));
} else {
exec_info_.prepare_version_ = SCN::max(gts, local_max_read_version);
// should not overwrite the prepare version of other participants
exec_info_.prepare_version_ = SCN::max(SCN::max(gts, local_max_read_version),
exec_info_.prepare_version_);
exec_info_.prepare_version_ =
SCN::max(exec_info_.prepare_version_, dup_table_follower_max_read_version_);
TRANS_LOG(INFO,