[UPGRADE] Forbid restoring tenant with unsupported data version
This commit is contained in:
@ -99,6 +99,13 @@ bool ObUpgradeChecker::check_data_version_exist(
|
||||
return bret;
|
||||
}
|
||||
|
||||
// TODO: should correspond to upgrade YML file.
|
||||
// For now, just consider the valid upgrade path for 4.x .
|
||||
bool ObUpgradeChecker::check_data_version_valid_for_backup(const uint64_t data_version)
|
||||
{
|
||||
return DATA_VERSION_4_3_0_0 <= data_version;
|
||||
}
|
||||
|
||||
//FIXME:(yanmu.ztl) cluster version should be discrete.
|
||||
bool ObUpgradeChecker::check_cluster_version_exist(
|
||||
const uint64_t version)
|
||||
|
||||
Reference in New Issue
Block a user