Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
a5c3d2c6
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a5c3d2c6
编写于
11月 20, 2020
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor
上级
cb98cd3f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
0 addition
and
108 deletion
+0
-108
src/common/inc/tmount.h
src/common/inc/tmount.h
+0
-39
src/common/inc/tpath.h
src/common/inc/tpath.h
+0
-61
src/common/src/tmount.c
src/common/src/tmount.c
+0
-1
src/os/src/detail/osSysinfo.c
src/os/src/detail/osSysinfo.c
+0
-1
src/plugins/monitor/src/monitorMain.c
src/plugins/monitor/src/monitorMain.c
+0
-1
src/tsdb/src/tsdbFile.c
src/tsdb/src/tsdbFile.c
+0
-2
src/tsdb/src/tsdbRWHelper.c
src/tsdb/src/tsdbRWHelper.c
+0
-1
src/vnode/src/vnodeMain.c
src/vnode/src/vnodeMain.c
+0
-2
未找到文件。
src/common/inc/tmount.h
已删除
100644 → 0
浏览文件 @
cb98cd3f
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TD_TDISK_H
#define TD_TDISK_H
#include "tglobal.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
struct
{
int
level
;
int
id
;
}
SDiskID
;
int
tdInitMount
(
SDiskCfg
*
pDiskCfg
,
int
ndisk
);
void
tdDestroyMount
();
int
tdUpdateDiskInfos
();
void
tdGetPrimaryPath
(
char
*
dst
);
#ifdef __cplusplus
}
#endif
#endif
src/common/inc/tpath.h
已删除
100644 → 0
浏览文件 @
cb98cd3f
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_TPATH_H_
#define _TD_TPATH_H_
#include <stdio.h>
#include "taosdef.h"
#ifdef __cplusplus
extern
"C"
{
#endif
static
FORCE_INLINE
void
tdGetMnodeRootDir
(
const
char
*
baseDir
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/mnode"
,
baseDir
);
}
static
FORCE_INLINE
void
tdGetDnodeRootDir
(
const
char
*
baseDir
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/dnode"
,
baseDir
);
}
static
FORCE_INLINE
void
tdGetVnodeRootDir
(
const
char
*
baseDir
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode"
,
baseDir
);
}
static
FORCE_INLINE
void
tdGetVnodeBackRootDir
(
const
char
*
baseDir
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode_bak"
,
baseDir
);
}
static
FORCE_INLINE
void
tdGetVnodeDir
(
const
char
*
baseDir
,
int
vid
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode/vnode%d"
,
baseDir
,
vid
);
}
static
FORCE_INLINE
void
tdGetVnodeBackDir
(
const
char
*
baseDir
,
int
vid
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode_bak/vnode%d"
,
baseDir
,
vid
);
}
static
FORCE_INLINE
void
tdGetTsdbRootDir
(
const
char
*
baseDir
,
int
vid
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode/vnode%d/tsdb"
,
baseDir
,
vid
);
}
static
FORCE_INLINE
void
tdGetTsdbDataDir
(
const
char
*
baseDir
,
int
vid
,
char
*
dirName
)
{
snprintf
(
dirName
,
TSDB_FILENAME_LEN
,
"%s/vnode/vnode%d/tsdb/data"
,
baseDir
,
vid
);
}
#ifdef __cplusplus
}
#endif
#endif // _TD_TPATH_H_
\ No newline at end of file
src/common/src/tmount.c
浏览文件 @
a5c3d2c6
...
...
@@ -13,7 +13,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "os.h"
#include "tmount.h"
#include "hash.h"
#include "taosdef.h"
#include "taoserror.h"
...
...
src/os/src/detail/osSysinfo.c
浏览文件 @
a5c3d2c6
...
...
@@ -16,7 +16,6 @@
#define _DEFAULT_SOURCE
#include "os.h"
#include "tconfig.h"
#include "tmount.h"
#include "tglobal.h"
#include "tulog.h"
...
...
src/plugins/monitor/src/monitorMain.c
浏览文件 @
a5c3d2c6
...
...
@@ -20,7 +20,6 @@
#include "tlog.h"
#include "ttimer.h"
#include "tutil.h"
#include "tmount.h"
#include "tscUtil.h"
#include "tsclient.h"
#include "dnode.h"
...
...
src/tsdb/src/tsdbFile.c
浏览文件 @
a5c3d2c6
...
...
@@ -21,8 +21,6 @@
#include "tchecksum.h"
#include "tsdbMain.h"
#include "tutil.h"
#include "tpath.h"
#include "tmount.h"
const
char
*
tsdbFileSuffix
[]
=
{
".head"
,
".data"
,
".last"
,
".stat"
,
".h"
,
".d"
,
".l"
,
".s"
};
...
...
src/tsdb/src/tsdbRWHelper.c
浏览文件 @
a5c3d2c6
...
...
@@ -21,7 +21,6 @@
#include "tcoding.h"
#include "tscompression.h"
#include "tsdbMain.h"
#include "tpath.h"
#define TSDB_GET_COMPCOL_LEN(nCols) (sizeof(SCompData) + sizeof(SCompCol) * (nCols) + sizeof(TSCKSUM))
#define TSDB_KEY_COL_OFFSET 0
...
...
src/vnode/src/vnodeMain.c
浏览文件 @
a5c3d2c6
...
...
@@ -29,8 +29,6 @@
#include "dnodeVWrite.h"
#include "dnodeVRead.h"
#include "query.h"
#include "tpath.h"
#include "tmount.h"
static
SHashObj
*
tsVnodesHash
;
static
void
vnodeCleanUp
(
SVnodeObj
*
pVnode
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录