Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oceanbase
提交
81b151f0
O
oceanbase
项目概览
oceanbase
/
oceanbase
9 个月 前同步成功
通知
261
Star
6084
Fork
1301
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
81b151f0
编写于
9月 24, 2021
作者:
L
LINxiansheng
提交者:
wangzelin.wzl
9月 24, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Upgrade version 3.1.0 to 3.1.1
上级
feb6c0e7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
5 deletion
+11
-5
CMakeLists.txt
CMakeLists.txt
+1
-1
src/share/ob_cluster_version.h
src/share/ob_cluster_version.h
+4
-1
src/share/ob_upgrade_utils.cpp
src/share/ob_upgrade_utils.cpp
+3
-1
src/share/ob_upgrade_utils.h
src/share/ob_upgrade_utils.h
+2
-1
src/share/parameter/ob_parameter_seed.ipp
src/share/parameter/ob_parameter_seed.ipp
+1
-1
未找到文件。
CMakeLists.txt
浏览文件 @
81b151f0
...
...
@@ -4,7 +4,7 @@ include(cmake/Utils.cmake)
include
(
cmake/Env.cmake
)
project
(
"OceanBase CE"
VERSION 3.1.
0
VERSION 3.1.
1
DESCRIPTION
"OceanBase distributed database system"
HOMEPAGE_URL
"https://www.oceanbase.com/"
LANGUAGES CXX C ASM
)
...
...
src/share/ob_cluster_version.h
浏览文件 @
81b151f0
...
...
@@ -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_31
00
#define CLUSTER_CURRENT_VERSION CLUSTER_VERSION_31
1
#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)
...
...
src/share/ob_upgrade_utils.cpp
浏览文件 @
81b151f0
...
...
@@ -61,7 +61,8 @@ const uint64_t ObUpgradeChecker::UPGRADE_PATH[CLUTER_VERSION_NUM] = {
CALC_CLUSTER_VERSION
(
2UL
,
2UL
,
74UL
),
// 2.2.74
CALC_CLUSTER_VERSION
(
2UL
,
2UL
,
75UL
),
// 2.2.75
CALC_CLUSTER_VERSION
(
2UL
,
2UL
,
76UL
),
// 2.2.76
CALC_CLUSTER_VERSION
(
3UL
,
1UL
,
0UL
)
// 3.1.0
CALC_CLUSTER_VERSION
(
3UL
,
1UL
,
0UL
),
// 3.1.0
CALC_CLUSTER_VERSION
(
3UL
,
1UL
,
1UL
)
//3.1.1
};
bool
ObUpgradeChecker
::
check_cluster_version_exist
(
const
uint64_t
version
)
...
...
@@ -1125,6 +1126,7 @@ int ObUpgradeProcesserSet::init(ObBaseUpgradeProcessor::UpgradeMode mode, common
INIT_PROCESSOR_BY_VERSION
(
2
,
2
,
75
);
INIT_PROCESSOR_BY_VERSION
(
2
,
2
,
76
);
INIT_PROCESSOR_BY_VERSION
(
3
,
1
,
0
);
INIT_PROCESSOR_BY_VERSION
(
3
,
1
,
1
);
#undef INIT_PROCESSOR_BY_VERSION
inited_
=
true
;
}
...
...
src/share/ob_upgrade_utils.h
浏览文件 @
81b151f0
...
...
@@ -181,7 +181,7 @@ public:
static
bool
check_cluster_version_exist
(
const
uint64_t
version
);
public:
static
const
int64_t
CLUTER_VERSION_NUM
=
3
2
;
static
const
int64_t
CLUTER_VERSION_NUM
=
3
3
;
static
const
uint64_t
UPGRADE_PATH
[
CLUTER_VERSION_NUM
];
};
...
...
@@ -230,6 +230,7 @@ public:
DEF_SIMPLE_UPGRARD_PROCESSER
(
2
,
2
,
76
);
// 3.1.0
DEF_SIMPLE_UPGRARD_PROCESSER
(
3
,
1
,
0
);
DEF_SIMPLE_UPGRARD_PROCESSER
(
3
,
1
,
1
);
/* =========== upgrade processor end ============= */
...
...
src/share/parameter/ob_parameter_seed.ipp
浏览文件 @
81b151f0
...
...
@@ -515,7 +515,7 @@ DEF_TIME(get_leader_candidate_rpc_timeout, OB_CLUSTER_PARAMETER, "9s", "[2s, 180
"the time during a get leader candidate rpc request "
"is permitted to execute before it is terminated. Range: [2s, 180s]",
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "3.1.
0
", "the min observer version",
DEF_STR(min_observer_version, OB_CLUSTER_PARAMETER, "3.1.
1
", "the min observer version",
ObParameterAttr(Section::ROOT_SERVICE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_BOOL(enable_ddl, OB_CLUSTER_PARAMETER, "True",
"specifies whether DDL operation is turned on. "
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录