Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8fa2f087
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看板
提交
8fa2f087
编写于
3月 23, 2023
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more code
上级
d596f3be
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
167 addition
and
1 deletion
+167
-1
source/dnode/vnode/CMakeLists.txt
source/dnode/vnode/CMakeLists.txt
+1
-1
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
+0
-0
source/dnode/vnode/src/tsdb/dev/tsdbFS.c
source/dnode/vnode/src/tsdb/dev/tsdbFS.c
+14
-0
source/dnode/vnode/src/tsdb/dev/tsdbFS.h
source/dnode/vnode/src/tsdb/dev/tsdbFS.h
+33
-0
source/dnode/vnode/src/tsdb/dev/tsdbFile.c
source/dnode/vnode/src/tsdb/dev/tsdbFile.c
+81
-0
source/dnode/vnode/src/tsdb/dev/tsdbFile.h
source/dnode/vnode/src/tsdb/dev/tsdbFile.h
+38
-0
未找到文件。
source/dnode/vnode/CMakeLists.txt
浏览文件 @
8fa2f087
...
...
@@ -55,7 +55,7 @@ target_sources(
"src/tsdb/tsdbMergeTree.c"
"src/tsdb/tsdbDataIter.c"
# # dev
"src/tsdb/dev/tsdbCommit
2
.c"
"src/tsdb/dev/tsdbCommit.c"
"src/tsdb/dev/tsdbMerge.c"
"src/tsdb/dev/tsdbSttFWriter.c"
...
...
source/dnode/vnode/src/tsdb/dev/tsdbCommit
2
.c
→
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
浏览文件 @
8fa2f087
文件已移动
source/dnode/vnode/src/tsdb/dev/tsdbFS.c
0 → 100644
浏览文件 @
8fa2f087
/*
* 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/>.
*/
\ No newline at end of file
source/dnode/vnode/src/tsdb/dev/tsdbFS.h
0 → 100644
浏览文件 @
8fa2f087
/*
* 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_FILE_SYSTEM_H
#define _TSDB_FILE_SYSTEM_H
#ifdef __cplusplus
extern
"C"
{
#endif
/* Exposed Handle */
/* Exposed APIs */
/* Exposed Structs */
#ifdef __cplusplus
}
#endif
#endif
/*_TSDB_FILE_SYSTEM_H*/
\ No newline at end of file
source/dnode/vnode/src/tsdb/dev/tsdbFile.c
0 → 100644
浏览文件 @
8fa2f087
/*
* 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/>.
*/
#include "tsdbFile.h"
typedef
enum
{
TSDB_FOP_CREATE
=
-
2
,
// create a file
TSDB_FOP_EXTEND
,
// extend a file
TSDB_FOP_NONE
,
// no operation
TSDB_FOP_TRUNCATE
,
// truncate a file
TSDB_FOP_DELETE
,
// delete a file
TSDB_FOP_MAX
,
}
tsdb_fop_t
;
typedef
enum
{
TSDB_FTYPE_NONE
=
0
,
// no file type
TSDB_FTYPE_STT
,
// .stt
TSDB_FTYPE_HEAD
,
// .head
TSDB_FTYPE_DATA
,
// .data
TSDB_FTYPE_SMA
,
// .sma
TSDB_FTYPE_TOMB
,
// .tomb
}
tsdb_ftype_t
;
typedef
struct
SFStt
{
int64_t
cid
;
int64_t
offset
;
}
SFStt
;
typedef
struct
SFHead
{
// TODO
}
SFHead
;
typedef
struct
SFData
{
// TODO
}
SFData
;
typedef
struct
SFSma
{
// TODO
}
SFSma
;
typedef
struct
SFTomb
{
// TODO
}
SFTomb
;
struct
STFile
{
SDiskID
diskId
;
tsdb_ftype_t
type
;
int64_t
size
;
union
{
SFStt
fstt
;
SFHead
fhead
;
SFData
fdata
;
SFSma
fsma
;
SFTomb
ftomb
;
};
};
struct
SFileObj
{
volatile
int32_t
nRef
;
STFile
file
;
};
struct
SFileOp
{
tsdb_fop_t
op
;
union
{
struct
{
}
create
;
};
};
\ No newline at end of file
source/dnode/vnode/src/tsdb/dev/tsdbFile.h
0 → 100644
浏览文件 @
8fa2f087
/*
* 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_FILE_H
#define _TSDB_FILE_H
#include "tsdb.h"
#ifdef __cplusplus
extern
"C"
{
#endif
/* Exposed Handle */
typedef
struct
STFile
STFile
;
typedef
struct
SFileObj
SFileObj
;
typedef
struct
SFileOp
SFileOp
;
/* Exposed APIs */
/* Exposed Structs */
#ifdef __cplusplus
}
#endif
#endif
/*_TSDB_FILE_H*/
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录