CP data_version/cluster_version to 4.2.0.0

This commit is contained in:
tino247
2023-05-11 13:53:19 +00:00
committed by ob-robot
parent c795f68755
commit c25187b07c
4 changed files with 14 additions and 2 deletions

View File

@ -37,6 +37,7 @@ namespace share
const uint64_t ObUpgradeChecker::UPGRADE_PATH[DATA_VERSION_NUM] = {
CALC_VERSION(4UL, 0UL, 0UL, 0UL), // 4.0.0.0
CALC_VERSION(4UL, 1UL, 0UL, 0UL), // 4.1.0.0
CALC_VERSION(4UL, 1UL, 0UL, 1UL), // 4.1.0.1
CALC_VERSION(4UL, 2UL, 0UL, 0UL) // 4.2.0.0
};
@ -53,6 +54,7 @@ int ObUpgradeChecker::get_data_version_by_cluster_version(
}
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_0_0_0, DATA_VERSION_4_0_0_0)
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_1_0_0, DATA_VERSION_4_1_0_0)
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_1_0_1, DATA_VERSION_4_1_0_1)
CONVERT_CLUSTER_VERSION_TO_DATA_VERSION(CLUSTER_VERSION_4_2_0_0, DATA_VERSION_4_2_0_0)
#undef CONVERT_CLUSTER_VERSION_TO_DATA_VERSION
default: {
@ -607,6 +609,7 @@ int ObUpgradeProcesserSet::init(
// order by data version asc
INIT_PROCESSOR_BY_VERSION(4, 0, 0, 0);
INIT_PROCESSOR_BY_VERSION(4, 1, 0, 0);
INIT_PROCESSOR_BY_VERSION(4, 1, 0, 1);
INIT_PROCESSOR_BY_VERSION(4, 2, 0, 0);
#undef INIT_PROCESSOR_BY_VERSION
inited_ = true;