Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
clmforever
oceanbase
提交
150d93bb
O
oceanbase
项目概览
clmforever
/
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看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
150d93bb
编写于
3月 14, 2022
作者:
B
bx0
提交者:
LINGuanRen
3月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Defense failed with perf event and sql audit.
上级
a034e825
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
44 addition
and
71 deletion
+44
-71
.github/ISSUE_TEMPLATE/bug-report.md
.github/ISSUE_TEMPLATE/bug-report.md
+35
-0
.github/ISSUE_TEMPLATE/bug-report.yml
.github/ISSUE_TEMPLATE/bug-report.yml
+0
-48
.github/ISSUE_TEMPLATE/question.yml
.github/ISSUE_TEMPLATE/question.yml
+0
-19
src/share/config/ob_server_config.h
src/share/config/ob_server_config.h
+4
-2
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
+5
-2
未找到文件。
.github/ISSUE_TEMPLATE/bug-report.md
0 → 100644
浏览文件 @
150d93bb
---
name
:
Bug report
about
:
Help us to improve this project
---
**Please check the FAQ documentation before raising an issue**
Please check the old issues before raising an issue in case someone has asked the same question that you are asking.
**Describe the bug (__must be provided__)**
A clear and concise description of what the bug is.
**Your Environments (__must be provided__)**
*
OS:
`uname -a`
*
Compliler:
`g++ --version`
or
`clang++ --version`
*
CPU:
`lscpu`
*
Commit id (e.g.
`a3ffc7d8`
)
**How To Reproduce(__must be provided__)**
Steps to reproduce the behavior:
1.
Step 1
2.
Step 2
3.
Step 3
**Expected behavior**
A clear and concise description of what you expected to happen.
**Additional context**
Provide logs and configs, or any other context to trace the problem.
.github/ISSUE_TEMPLATE/bug-report.yml
已删除
100644 → 0
浏览文件 @
a034e825
name
:
Bug report
description
:
bug report for OceanBase
title
:
"
[Bug]:
"
labels
:
[
bug
]
assignees
:
-
caifeizhi
body
:
-
type
:
checkboxes
attributes
:
label
:
Please check the issue list for the same bug
options
:
-
label
:
I have checked issue list and this bug is encountered for the first time.
required
:
true
-
type
:
textarea
attributes
:
label
:
Environment
description
:
|
Environment Details sometimes important
value
:
|
- OB Version&commit_id or other module version&commit_id (e.g. observer V3.1.2 8b23a93):
- Hardware parameter:OS type & Compliler & CPU etc.
- Others
render
:
markdown
validations
:
required
:
false
-
type
:
textarea
attributes
:
label
:
Fast Reproduce Steps(Required)
validations
:
required
:
true
-
type
:
textarea
attributes
:
label
:
Actual Behavior
description
:
What is the result? picture is allowed
validations
:
required
:
true
-
type
:
textarea
attributes
:
label
:
Expected Behavior
description
:
what you expected.
validations
:
required
:
false
-
type
:
textarea
attributes
:
label
:
other information
description
:
Error Log or Core stack or Others
validations
:
required
:
false
.github/ISSUE_TEMPLATE/question.yml
已删除
100644 → 0
浏览文件 @
a034e825
name
:
question
description
:
concise description of the problem.
title
:
"
[Question]:
"
labels
:
[
question
]
assignees
:
-
caifeizhi
body
:
-
type
:
markdown
attributes
:
value
:
|
Make sure you have:
* Searched [GitHub issue](https://github.com/oceanbase/oceanbase/issues)
* Searched [documentation](https://open.oceanbase.com)
-
type
:
textarea
attributes
:
label
:
Describe your question
description
:
better to provide some pictures.
validations
:
required
:
true
src/share/config/ob_server_config.h
浏览文件 @
150d93bb
...
...
@@ -39,8 +39,10 @@ const char* const MINOR_FREEZE_TIMES = "minor_freeze_times";
const
char
*
const
MAJOR_COMPACT_TRIGGER
=
"major_compact_trigger"
;
const
char
*
const
ENABLE_PERF_EVENT
=
"enable_perf_event"
;
const
char
*
const
ENABLE_SQL_AUDIT
=
"enable_sql_audit"
;
const
char
*
const
CONFIG_TRUE_VALUE
=
"1"
;
const
char
*
const
CONFIG_FALSE_VALUE
=
"0"
;
const
char
*
const
CONFIG_TRUE_VALUE_BOOL
=
"1"
;
const
char
*
const
CONFIG_FALSE_VALUE_BOOL
=
"0"
;
const
char
*
const
CONFIG_TRUE_VALUE_STRING
=
"true"
;
const
char
*
const
CONFIG_FALSE_VALUE_STRING
=
"false"
;
const
char
*
const
OBCONFIG_URL
=
"obconfig_url"
;
const
char
*
const
SCHEMA_HISTORY_RECYCLE_INTERVAL
=
"schema_history_recycle_interval"
;
const
char
*
const
_RECYCLEBIN_OBJECT_PURGE_FREQUENCY
=
"_recyclebin_object_purge_frequency"
;
...
...
src/sql/resolver/cmd/ob_alter_system_resolver.cpp
浏览文件 @
150d93bb
...
...
@@ -2148,7 +2148,8 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
LOG_USER_ERROR
(
OB_NOT_SUPPORTED
,
"set enable_perf_event and enable_sql_audit together"
);
LOG_WARN
(
"enable_perf_event and enable_sql_audit should not set together"
,
K
(
ret
));
}
else
if
(
0
==
STRCMP
(
item
.
name_
.
ptr
(),
ENABLE_PERF_EVENT
)
&&
0
==
STRCMP
(
item
.
value_
.
ptr
(),
CONFIG_FALSE_VALUE
))
{
(
0
==
STRCASECMP
(
item
.
value_
.
ptr
(),
CONFIG_FALSE_VALUE_BOOL
)
||
0
==
STRCASECMP
(
item
.
value_
.
ptr
(),
CONFIG_FALSE_VALUE_STRING
)))
{
if
(
GCONF
.
enable_sql_audit
)
{
ret
=
OB_NOT_SUPPORTED
;
LOG_USER_ERROR
(
OB_NOT_SUPPORTED
,
"set enable_perf_event to false when enable_sql_audit is true"
);
...
...
@@ -2159,7 +2160,9 @@ int ObSetConfigResolver::resolve(const ParseNode& parse_tree)
LOG_WARN
(
"add config item failed"
,
K
(
ret
),
K
(
item
));
}
}
else
if
(
0
==
STRCMP
(
item
.
name_
.
ptr
(),
ENABLE_SQL_AUDIT
)
&&
0
==
STRCMP
(
item
.
value_
.
ptr
(),
CONFIG_TRUE_VALUE
)
&&
!
GCONF
.
enable_perf_event
)
{
(
0
==
STRCASECMP
(
item
.
value_
.
ptr
(),
CONFIG_TRUE_VALUE_BOOL
)
||
0
==
STRCASECMP
(
item
.
value_
.
ptr
(),
CONFIG_TRUE_VALUE_STRING
))
&&
!
GCONF
.
enable_perf_event
)
{
ret
=
OB_NOT_SUPPORTED
;
LOG_USER_ERROR
(
OB_NOT_SUPPORTED
,
"set enable_sql_audit to true when enable_perf_event is false"
);
LOG_WARN
(
"enable_sql_audit cannot set true when enable_perf_event is false"
,
K
(
ret
));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录