fix LAST_BARRIER_DATA_VERSION not ready for 4_2_5
This commit is contained in:
@ -78,9 +78,15 @@ inline int ObTransService::init_tx_(ObTxDesc &tx,
|
|||||||
if (0 == cluster_version && OB_FAIL(GET_MIN_DATA_VERSION(tenant_id_, tx.cluster_version_))) {
|
if (0 == cluster_version && OB_FAIL(GET_MIN_DATA_VERSION(tenant_id_, tx.cluster_version_))) {
|
||||||
TRANS_LOG(WARN, "get min data version fail", K(ret), K(tx));
|
TRANS_LOG(WARN, "get min data version fail", K(ret), K(tx));
|
||||||
} else if (tx.cluster_version_ < MOCK_DATA_VERSION_4_2_4_0) {
|
} else if (tx.cluster_version_ < MOCK_DATA_VERSION_4_2_4_0) {
|
||||||
|
if (tx.cluster_version_ == DATA_VERSION_4_2_1_0) {
|
||||||
|
// FIXME: remove this branch
|
||||||
|
tx.cluster_version_ = MOCK_DATA_VERSION_4_2_4_0;
|
||||||
|
TRANS_LOG(WARN, "NEED_REMOVE_NOTICE:4_2_1_0 data version forced to 4_2_4_0");
|
||||||
|
} else {
|
||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
TRANS_LOG(WARN, "data version should >= 4_2_4_0", K(ret), K(tx));
|
TRANS_LOG(WARN, "data version should >= 4_2_4_0", K(ret), K(tx));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
tx.seq_base_ = common::ObSequence::get_max_seq_no() - 1;
|
tx.seq_base_ = common::ObSequence::get_max_seq_no() - 1;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user