fix sp trans may not be readable under standby tenant

This commit is contained in:
obdev
2023-05-26 02:11:41 +00:00
committed by ob-robot
parent ae0b797794
commit b3c3b8f5f6

View File

@ -7351,6 +7351,11 @@ int ObPartTransCtx::check_for_standby(const SCN &snapshot,
if (IS_NOT_INIT) {
TRANS_LOG(WARN, "ObPartTransCtx not inited");
ret = OB_NOT_INIT;
} else if (is_local_tx_()) {
can_read = false;
trans_version.set_min();
is_determined_state = false;
ret = OB_SUCCESS;
} else {
SCN min_snapshot = SCN::max_scn();
ObStateInfo tmp_state_info;