Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
9850c3bc
O
oceanbase
项目概览
Metz
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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看板
提交
9850c3bc
编写于
12月 02, 2021
作者:
Y
ym0
提交者:
LINGuanRen
12月 02, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Change _schema_history_recycle_interval to a formal parameter
上级
b82a7f5e
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
7 addition
and
7 deletion
+7
-7
src/rootserver/ob_root_service.cpp
src/rootserver/ob_root_service.cpp
+2
-2
src/rootserver/ob_schema_history_recycler.cpp
src/rootserver/ob_schema_history_recycler.cpp
+3
-3
src/share/config/ob_server_config.h
src/share/config/ob_server_config.h
+1
-1
src/share/parameter/ob_parameter_seed.ipp
src/share/parameter/ob_parameter_seed.ipp
+1
-1
未找到文件。
src/rootserver/ob_root_service.cpp
浏览文件 @
9850c3bc
...
@@ -9790,9 +9790,9 @@ int ObRootService::set_config_post_hook(const obrpc::ObAdminSetConfigArg& arg)
...
@@ -9790,9 +9790,9 @@ int ObRootService::set_config_post_hook(const obrpc::ObAdminSetConfigArg& arg)
LOG_WARN
(
"fail to submit update rs list task"
,
KR
(
ret
),
K
(
tmp_ret
));
LOG_WARN
(
"fail to submit update rs list task"
,
KR
(
ret
),
K
(
tmp_ret
));
}
}
LOG_INFO
(
"obconfig_url parameters updated, force submit update rslist task"
,
KR
(
tmp_ret
),
KPC
(
item
));
LOG_INFO
(
"obconfig_url parameters updated, force submit update rslist task"
,
KR
(
tmp_ret
),
KPC
(
item
));
}
else
if
(
0
==
STRCMP
(
item
->
name_
.
ptr
(),
_
SCHEMA_HISTORY_RECYCLE_INTERVAL
))
{
}
else
if
(
0
==
STRCMP
(
item
->
name_
.
ptr
(),
SCHEMA_HISTORY_RECYCLE_INTERVAL
))
{
schema_history_recycler_
.
wakeup
();
schema_history_recycler_
.
wakeup
();
LOG_INFO
(
"
_
schema_history_recycle_interval parameters updated, wakeup schema_history_recycler"
,
KPC
(
item
));
LOG_INFO
(
"schema_history_recycle_interval parameters updated, wakeup schema_history_recycler"
,
KPC
(
item
));
}
}
}
}
return
ret
;
return
ret
;
...
...
src/rootserver/ob_schema_history_recycler.cpp
浏览文件 @
9850c3bc
...
@@ -68,8 +68,8 @@ bool ObRecycleSchemaValue::is_valid() const
...
@@ -68,8 +68,8 @@ bool ObRecycleSchemaValue::is_valid() const
int64_t
ObSchemaHistoryRecyclerIdling
::
get_idle_interval_us
()
int64_t
ObSchemaHistoryRecyclerIdling
::
get_idle_interval_us
()
{
{
int64_t
idle_time
=
DEFAULT_SCHEMA_HISTORY_RECYCLE_INTERVAL
;
int64_t
idle_time
=
DEFAULT_SCHEMA_HISTORY_RECYCLE_INTERVAL
;
if
(
0
!=
GCONF
.
_
schema_history_recycle_interval
&&
!
GCONF
.
in_upgrade_mode
())
{
if
(
0
!=
GCONF
.
schema_history_recycle_interval
&&
!
GCONF
.
in_upgrade_mode
())
{
idle_time
=
GCONF
.
_
schema_history_recycle_interval
;
idle_time
=
GCONF
.
schema_history_recycle_interval
;
}
}
return
idle_time
;
return
idle_time
;
}
}
...
@@ -159,7 +159,7 @@ int ObSchemaHistoryRecycler::check_inner_stat()
...
@@ -159,7 +159,7 @@ int ObSchemaHistoryRecycler::check_inner_stat()
}
else
if
(
stop_
)
{
}
else
if
(
stop_
)
{
ret
=
OB_CANCELED
;
ret
=
OB_CANCELED
;
LOG_WARN
(
"schema history recycler stopped"
,
KR
(
ret
));
LOG_WARN
(
"schema history recycler stopped"
,
KR
(
ret
));
}
else
if
(
0
==
GCONF
.
_
schema_history_recycle_interval
||
GCONF
.
in_upgrade_mode
()
||
!
GCTX
.
is_schema_splited
())
{
}
else
if
(
0
==
GCONF
.
schema_history_recycle_interval
||
GCONF
.
in_upgrade_mode
()
||
!
GCTX
.
is_schema_splited
())
{
ret
=
OB_CANCELED
;
ret
=
OB_CANCELED
;
LOG_WARN
(
"schema history recycler should stopped"
,
KR
(
ret
));
LOG_WARN
(
"schema history recycler should stopped"
,
KR
(
ret
));
}
}
...
...
src/share/config/ob_server_config.h
浏览文件 @
9850c3bc
...
@@ -42,7 +42,7 @@ const char* const ENABLE_SQL_AUDIT = "enable_sql_audit";
...
@@ -42,7 +42,7 @@ const char* const ENABLE_SQL_AUDIT = "enable_sql_audit";
const
char
*
const
CONFIG_TRUE_VALUE
=
"1"
;
const
char
*
const
CONFIG_TRUE_VALUE
=
"1"
;
const
char
*
const
CONFIG_FALSE_VALUE
=
"0"
;
const
char
*
const
CONFIG_FALSE_VALUE
=
"0"
;
const
char
*
const
OBCONFIG_URL
=
"obconfig_url"
;
const
char
*
const
OBCONFIG_URL
=
"obconfig_url"
;
const
char
*
const
_SCHEMA_HISTORY_RECYCLE_INTERVAL
=
"_
schema_history_recycle_interval"
;
const
char
*
const
SCHEMA_HISTORY_RECYCLE_INTERVAL
=
"
schema_history_recycle_interval"
;
const
char
*
const
_RECYCLEBIN_OBJECT_PURGE_FREQUENCY
=
"_recyclebin_object_purge_frequency"
;
const
char
*
const
_RECYCLEBIN_OBJECT_PURGE_FREQUENCY
=
"_recyclebin_object_purge_frequency"
;
const
char
*
const
TDE_MODE
=
"tde_mode"
;
const
char
*
const
TDE_MODE
=
"tde_mode"
;
const
char
*
const
EXTERNAL_KMS_INFO
=
"external_kms_info"
;
const
char
*
const
EXTERNAL_KMS_INFO
=
"external_kms_info"
;
...
...
src/share/parameter/ob_parameter_seed.ipp
浏览文件 @
9850c3bc
...
@@ -1425,7 +1425,7 @@ DEF_BOOL(_enable_plan_cache_mem_diagnosis, OB_CLUSTER_PARAMETER, "False",
...
@@ -1425,7 +1425,7 @@ DEF_BOOL(_enable_plan_cache_mem_diagnosis, OB_CLUSTER_PARAMETER, "False",
DEF_INT(_clog_aggregation_buffer_amount, OB_TENANT_PARAMETER, "0", "[0, 128]", "the amount of clog aggregation buffer",
DEF_INT(_clog_aggregation_buffer_amount, OB_TENANT_PARAMETER, "0", "[0, 128]", "the amount of clog aggregation buffer",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_TIME(
_schema_history_recycle_interval, OB_CLUSTER_PARAMETER, "0s
", "[0s,]",
DEF_TIME(
schema_history_recycle_interval, OB_CLUSTER_PARAMETER, "10m
", "[0s,]",
"the time interval between the schedules of schema history recyle task. "
"the time interval between the schedules of schema history recyle task. "
"Range: [0s, +∞)",
"Range: [0s, +∞)",
ObParameterAttr(Section::LOAD_BALANCE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
ObParameterAttr(Section::LOAD_BALANCE, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录