Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
oceanbase
提交
f7379b26
O
oceanbase
项目概览
oceanbase
/
oceanbase
8 个月 前同步成功
通知
260
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 搜索 >>
提交
f7379b26
编写于
5月 18, 2023
作者:
O
obdev
提交者:
ob-robot
5月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] add _ob_wait_interval_after_truncate conf for truncate
上级
0f02635b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
1 deletion
+5
-1
src/share/parameter/ob_parameter_seed.ipp
src/share/parameter/ob_parameter_seed.ipp
+3
-0
src/sql/engine/cmd/ob_table_executor.cpp
src/sql/engine/cmd/ob_table_executor.cpp
+1
-1
tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result
...inner_table/r/mysql/all_virtual_sys_parameter_stat.result
+1
-0
未找到文件。
src/share/parameter/ob_parameter_seed.ipp
浏览文件 @
f7379b26
...
...
@@ -1410,3 +1410,6 @@ DEF_INT(_pipelined_table_function_memory_limit, OB_TENANT_PARAMETER, "524288000"
DEF_BOOL(_enable_reserved_user_dcl_restriction, OB_CLUSTER_PARAMETER, "False",
"specifies whether to forbid non-reserved user to modify reserved users",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_TIME(_wait_interval_after_truncate, OB_CLUSTER_PARAMETER, "30s", "[0s,)",
"time interval for waiting other servers to refresh schema after truncate",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
src/sql/engine/cmd/ob_table_executor.cpp
浏览文件 @
f7379b26
...
...
@@ -1774,7 +1774,7 @@ int ObTruncateTableExecutor::execute(ObExecContext &ctx, ObTruncateTableStmt &st
&&
consensus_schema_version
>=
res
.
task_id_
)
{
break
;
}
else
if
(
refreshed_schema_version
>=
res
.
task_id_
&&
ObTimeUtility
::
current_time
()
-
step_time
>=
10
*
1000
*
1000
)
{
//10s
&&
ObTimeUtility
::
current_time
()
-
step_time
>=
GCONF
.
_wait_interval_after_truncate
)
{
break
;
}
else
{
ob_usleep
(
10
*
1000
);
...
...
tools/deploy/mysql_test/test_suite/inner_table/r/mysql/all_virtual_sys_parameter_stat.result
浏览文件 @
f7379b26
...
...
@@ -335,6 +335,7 @@ _temporary_file_io_area_size
_trace_control_info
_tx_result_retention
_upgrade_stage
_wait_interval_after_truncate
_xa_gc_interval
_xa_gc_timeout
__balance_controller
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录