Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
41383618
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
41383618
编写于
6月 14, 2023
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refact code
上级
5bacfb4f
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
33 addition
and
76 deletion
+33
-76
source/dnode/vnode/CMakeLists.txt
source/dnode/vnode/CMakeLists.txt
+23
-25
source/dnode/vnode/src/tsdb/dev/dev.h
source/dnode/vnode/src/tsdb/dev/dev.h
+0
-41
source/dnode/vnode/src/tsdb/tsdbCommit2.c
source/dnode/vnode/src/tsdb/tsdbCommit2.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbCommit2.h
source/dnode/vnode/src/tsdb/tsdbCommit2.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbDataFileRW.c
source/dnode/vnode/src/tsdb/tsdbDataFileRW.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbDataFileRW.h
source/dnode/vnode/src/tsdb/tsdbDataFileRW.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbDef.h
source/dnode/vnode/src/tsdb/tsdbDef.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbFS2.c
source/dnode/vnode/src/tsdb/tsdbFS2.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbFS2.h
source/dnode/vnode/src/tsdb/tsdbFS2.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbFSet2.c
source/dnode/vnode/src/tsdb/tsdbFSet2.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbFSet2.h
source/dnode/vnode/src/tsdb/tsdbFSet2.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbFile2.c
source/dnode/vnode/src/tsdb/tsdbFile2.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbFile2.h
source/dnode/vnode/src/tsdb/tsdbFile2.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbIter.c
source/dnode/vnode/src/tsdb/tsdbIter.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbIter.h
source/dnode/vnode/src/tsdb/tsdbIter.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbMerge.c
source/dnode/vnode/src/tsdb/tsdbMerge.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbMerge.h
source/dnode/vnode/src/tsdb/tsdbMerge.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbOpen.c
source/dnode/vnode/src/tsdb/tsdbOpen.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbSttFileRW.c
source/dnode/vnode/src/tsdb/tsdbSttFileRW.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbSttFileRW.h
source/dnode/vnode/src/tsdb/tsdbSttFileRW.h
+0
-0
source/dnode/vnode/src/tsdb/tsdbUtil2.c
source/dnode/vnode/src/tsdb/tsdbUtil2.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbUtil2.h
source/dnode/vnode/src/tsdb/tsdbUtil2.h
+0
-0
未找到文件。
source/dnode/vnode/CMakeLists.txt
浏览文件 @
41383618
...
@@ -35,23 +35,23 @@ set(
...
@@ -35,23 +35,23 @@ set(
"src/sma/smaSnapshot.c"
"src/sma/smaSnapshot.c"
"src/sma/smaTimeRange.c"
"src/sma/smaTimeRange.c"
# tsdb
#
#
tsdb
"src/tsdb/tsdbCommit.c"
#
"src/tsdb/tsdbCommit.c"
"src/tsdb/tsdbFile.c"
#
"src/tsdb/tsdbFile.c"
"src/tsdb/tsdbFS.c"
#
"src/tsdb/tsdbFS.c"
"src/tsdb/tsdbOpen.c"
#
"src/tsdb/tsdbOpen.c"
"src/tsdb/tsdbMemTable.c"
#
"src/tsdb/tsdbMemTable.c"
"src/tsdb/tsdbRead.c"
#
"src/tsdb/tsdbRead.c"
"src/tsdb/tsdbCache.c"
#
"src/tsdb/tsdbCache.c"
"src/tsdb/tsdbWrite.c"
#
"src/tsdb/tsdbWrite.c"
"src/tsdb/tsdbReaderWriter.c"
#
"src/tsdb/tsdbReaderWriter.c"
"src/tsdb/tsdbUtil.c"
#
"src/tsdb/tsdbUtil.c"
"src/tsdb/tsdbSnapshot.c"
#
"src/tsdb/tsdbSnapshot.c"
"src/tsdb/tsdbCacheRead.c"
#
"src/tsdb/tsdbCacheRead.c"
"src/tsdb/tsdbRetention.c"
#
"src/tsdb/tsdbRetention.c"
"src/tsdb/tsdbDiskData.c"
#
"src/tsdb/tsdbDiskData.c"
"src/tsdb/tsdbMergeTree.c"
#
"src/tsdb/tsdbMergeTree.c"
"src/tsdb/tsdbDataIter.c"
#
"src/tsdb/tsdbDataIter.c"
# tq
# tq
"src/tq/tq.c"
"src/tq/tq.c"
...
@@ -68,14 +68,12 @@ set(
...
@@ -68,14 +68,12 @@ set(
"src/tq/tqOffsetSnapshot.c"
"src/tq/tqOffsetSnapshot.c"
)
)
if
(
USE_DEV_CODE
)
aux_source_directory
(
"src/tsdb/"
TSDB_SOURCE_FILES
)
aux_source_directory
(
"src/tsdb/dev"
VNODE_SOURCE_DEV_FILES
)
list
(
list
(
APPEND
APPEND
VNODE_SOURCE_FILES
VNODE_SOURCE_FILES
${
TSDB_SOURCE_FILES
}
${
VNODE_SOURCE_DEV_FILES
}
)
)
endif
(
USE_DEV_CODE
)
target_sources
(
target_sources
(
vnode
vnode
...
...
source/dnode/vnode/src/tsdb/dev/dev.h
已删除
100644 → 0
浏览文件 @
5bacfb4f
/*
* 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 _TSDB_DEV_H
#define _TSDB_DEV_H
#include "tsdb.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#include "inc/tsdbUtil2.h"
#include "inc/tsdbFile2.h"
#include "inc/tsdbFSet2.h"
#include "inc/tsdbFS2.h"
#include "inc/tsdbSttFileRW.h"
#include "inc/tsdbDataFileRW.h"
#ifdef __cplusplus
}
#endif
#endif
/*_TSDB_DEV_H*/
\ No newline at end of file
source/dnode/vnode/src/tsdb/
dev/
tsdbCommit2.c
→
source/dnode/vnode/src/tsdb/tsdbCommit2.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbCommit2.h"
#include "tsdbCommit2.h"
// extern dependencies
// extern dependencies
typedef
struct
{
typedef
struct
{
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbCommit2.h
→
source/dnode/vnode/src/tsdb/tsdbCommit2.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbDataFileRW.c
→
source/dnode/vnode/src/tsdb/tsdbDataFileRW.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbDataFileRW.h"
#include "tsdbDataFileRW.h"
typedef
struct
{
typedef
struct
{
SFDataPtr
brinBlkPtr
[
1
];
SFDataPtr
brinBlkPtr
[
1
];
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbDataFileRW.h
→
source/dnode/vnode/src/tsdb/tsdbDataFileRW.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbDef.h
→
source/dnode/vnode/src/tsdb/tsdbDef.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbFS2.c
→
source/dnode/vnode/src/tsdb/tsdbFS2.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbFS2.h"
#include "tsdbFS2.h"
extern
int
vnodeScheduleTask
(
int
(
*
execute
)(
void
*
),
void
*
arg
);
extern
int
vnodeScheduleTask
(
int
(
*
execute
)(
void
*
),
void
*
arg
);
extern
int
vnodeScheduleTaskEx
(
int
tpid
,
int
(
*
execute
)(
void
*
),
void
*
arg
);
extern
int
vnodeScheduleTaskEx
(
int
tpid
,
int
(
*
execute
)(
void
*
),
void
*
arg
);
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbFS2.h
→
source/dnode/vnode/src/tsdb/tsdbFS2.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbFSet2.c
→
source/dnode/vnode/src/tsdb/tsdbFSet2.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbFSet2.h"
#include "tsdbFSet2.h"
static
int32_t
tsdbSttLvlInit
(
int32_t
level
,
SSttLvl
**
lvl
)
{
static
int32_t
tsdbSttLvlInit
(
int32_t
level
,
SSttLvl
**
lvl
)
{
if
(
!
(
lvl
[
0
]
=
taosMemoryMalloc
(
sizeof
(
SSttLvl
))))
return
TSDB_CODE_OUT_OF_MEMORY
;
if
(
!
(
lvl
[
0
]
=
taosMemoryMalloc
(
sizeof
(
SSttLvl
))))
return
TSDB_CODE_OUT_OF_MEMORY
;
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbFSet2.h
→
source/dnode/vnode/src/tsdb/tsdbFSet2.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbFile2.c
→
source/dnode/vnode/src/tsdb/tsdbFile2.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbFile2.h"
#include "tsdbFile2.h"
// to_json
// to_json
static
int32_t
head_to_json
(
const
STFile
*
file
,
cJSON
*
json
);
static
int32_t
head_to_json
(
const
STFile
*
file
,
cJSON
*
json
);
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbFile2.h
→
source/dnode/vnode/src/tsdb/tsdbFile2.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbIter.c
→
source/dnode/vnode/src/tsdb/tsdbIter.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbIter.h"
#include "tsdbIter.h"
// STsdbIter ================
// STsdbIter ================
struct
STsdbIter
{
struct
STsdbIter
{
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbIter.h
→
source/dnode/vnode/src/tsdb/tsdbIter.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbMerge.c
→
source/dnode/vnode/src/tsdb/tsdbMerge.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbMerge.h"
#include "tsdbMerge.h"
typedef
struct
{
typedef
struct
{
STsdb
*
tsdb
;
STsdb
*
tsdb
;
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbMerge.h
→
source/dnode/vnode/src/tsdb/tsdbMerge.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/tsdbOpen.c
浏览文件 @
41383618
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#include "tsdb.h"
#include "tsdb.h"
#ifdef USE_DEV_CODE
#ifdef USE_DEV_CODE
#include "
dev/dev
.h"
#include "
tsdbFS2
.h"
#endif
#endif
int32_t
tsdbSetKeepCfg
(
STsdb
*
pTsdb
,
STsdbCfg
*
pCfg
)
{
int32_t
tsdbSetKeepCfg
(
STsdb
*
pTsdb
,
STsdbCfg
*
pCfg
)
{
...
...
source/dnode/vnode/src/tsdb/
dev/
tsdbSttFileRW.c
→
source/dnode/vnode/src/tsdb/tsdbSttFileRW.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
inc/
tsdbSttFileRW.h"
#include "tsdbSttFileRW.h"
typedef
struct
{
typedef
struct
{
int64_t
prevFooter
;
int64_t
prevFooter
;
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbSttFileRW.h
→
source/dnode/vnode/src/tsdb/tsdbSttFileRW.h
浏览文件 @
41383618
文件已移动
source/dnode/vnode/src/tsdb/
dev/
tsdbUtil2.c
→
source/dnode/vnode/src/tsdb/tsdbUtil2.c
浏览文件 @
41383618
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#include "
dev
.h"
#include "
tsdbUtil2
.h"
// SDelBlock ----------
// SDelBlock ----------
int32_t
tTombBlockInit
(
STombBlock
*
tombBlock
)
{
int32_t
tTombBlockInit
(
STombBlock
*
tombBlock
)
{
...
...
source/dnode/vnode/src/tsdb/
dev/inc/
tsdbUtil2.h
→
source/dnode/vnode/src/tsdb/tsdbUtil2.h
浏览文件 @
41383618
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录