Upgrade version 3.1.0 to 3.1.1

This commit is contained in:
LINxiansheng
2021-09-24 13:54:13 +08:00
committed by wangzelin.wzl
parent feb6c0e7c8
commit 81b151f04d
5 changed files with 11 additions and 5 deletions

View File

@ -92,11 +92,12 @@ uint64_t cal_version(const uint64_t major, const uint64_t minor, const uint64_t
#define CLUSTER_VERSION_2277 (oceanbase::common::cal_version(2, 2, 77))
#define CLUSTER_VERSION_3000 (oceanbase::common::cal_version(3, 0, 0))
#define CLUSTER_VERSION_3100 (oceanbase::common::cal_version(3, 1, 0))
#define CLUSTER_VERSION_311 (oceanbase::common::cal_version(3, 1, 1))
#define CLUSTER_VERSION_MAX UINT64_MAX
// FIXME If you update the above version, please update me, CLUSTER_CURRENT_VERSION & ObUpgradeChecker!!!!!!
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_3100
#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_311
#define GET_MIN_CLUSTER_VERSION() (oceanbase::common::ObClusterVersion::get_instance().get_cluster_version())
#define GET_UNIS_CLUSTER_VERSION() (::oceanbase::lib::get_unis_compat_version() ?: GET_MIN_CLUSTER_VERSION())
@ -110,6 +111,8 @@ uint64_t cal_version(const uint64_t major, const uint64_t minor, const uint64_t
(oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() < CLUSTER_VERSION_3000)
#define IS_CLUSTER_VERSION_BEFORE_3100 \
(oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() < CLUSTER_VERSION_3100)
#define IS_CLUSTER_VERSION_BEFORE_311 \
(oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() < CLUSTER_VERSION_311)
#define IS_CLUSTER_VERSION_AFTER_2274 \
(oceanbase::common::ObClusterVersion::get_instance().get_cluster_version() > CLUSTER_VERSION_2274)