Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
84b30e07
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
84b30e07
编写于
2月 23, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove global variables
上级
b0453021
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
33 deletion
+6
-33
include/common/tglobal.h
include/common/tglobal.h
+0
-6
source/common/src/tglobal.c
source/common/src/tglobal.c
+6
-27
未找到文件。
include/common/tglobal.h
浏览文件 @
84b30e07
...
...
@@ -21,12 +21,6 @@ extern "C" {
#endif
#include "tdef.h"
#include "tcfg.h"
// cluster
extern
int32_t
tsStatusInterval
;
extern
int8_t
tsEnableTelemetryReporting
;
extern
int32_t
tsNumOfSupportVnodes
;
// common
extern
int
tsRpcTimer
;
...
...
source/common/src/tglobal.c
浏览文件 @
84b30e07
...
...
@@ -27,11 +27,6 @@
#include "tutil.h"
#include "ulog.h"
// cluster
int32_t
tsStatusInterval
=
1
;
// second
int8_t
tsEnableTelemetryReporting
=
0
;
char
tsEmail
[
TSDB_FQDN_LEN
]
=
{
0
};
int32_t
tsNumOfSupportVnodes
=
128
;
// common
int32_t
tsRpcTimer
=
300
;
...
...
@@ -125,12 +120,6 @@ int8_t tsDeadLockKillQuery = 0;
// For backward compatibility
bool
tsdbForceKeepFile
=
false
;
#ifndef _STORAGE
SDiskCfg
tsDiskCfg
[
1
];
#else
SDiskCfg
tsDiskCfg
[
TFS_MAX_DISKS
];
#endif
/*
* minimum scale for whole system, millisecond by default
* for TSDB_TIME_PRECISION_MILLI: 86400000L
...
...
@@ -247,12 +236,12 @@ int32_t taosCfgDynamicOptions(char *msg) {
return
false
;
}
void
taosAddDataDir
(
int
index
,
char
*
v1
,
int
level
,
int
primary
)
{
tstrncpy
(
tsDiskCfg
[
index
].
dir
,
v1
,
TSDB_FILENAME_LEN
);
tsDiskCfg
[
index
].
level
=
level
;
tsDiskCfg
[
index
].
primary
=
primary
;
uTrace
(
"dataDir:%s, level:%d primary:%d is configured"
,
v1
,
level
,
primary
);
}
//
void taosAddDataDir(int index, char *v1, int level, int primary) {
//
tstrncpy(tsDiskCfg[index].dir, v1, TSDB_FILENAME_LEN);
//
tsDiskCfg[index].level = level;
//
tsDiskCfg[index].primary = primary;
//
uTrace("dataDir:%s, level:%d primary:%d is configured", v1, level, primary);
//
}
#ifndef _STORAGE
// void taosReadDataDirCfg(char *v1, char *v2, char *v3) {
...
...
@@ -302,16 +291,6 @@ static void doInitGlobalConfig(void) {
cfg.unitType = TAOS_CFG_UTYPE_NONE;
taosAddConfigOption(cfg);
cfg.option = "telemetryReporting";
cfg.ptr = &tsEnableTelemetryReporting;
cfg.valType = TAOS_CFG_VTYPE_INT8;
cfg.cfgType = TSDB_CFG_CTYPE_B_CONFIG | TSDB_CFG_CTYPE_B_SHOW;
cfg.minValue = 0;
cfg.maxValue = 1;
cfg.ptrLength = 1;
cfg.unitType = TAOS_CFG_UTYPE_NONE;
taosAddConfigOption(cfg);
// timer
cfg.option = "maxTmrCtrl";
cfg.ptr = &tsMaxTmrCtrl;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录