Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
69a2f712
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
69a2f712
编写于
3月 27, 2023
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more code
上级
0a13fc49
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
21 addition
and
21 deletion
+21
-21
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
+1
-1
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.c
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.c
+14
-14
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.h
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.h
+6
-6
未找到文件。
source/dnode/vnode/src/tsdb/dev/tsdbCommit.c
浏览文件 @
69a2f712
...
...
@@ -33,7 +33,7 @@ typedef struct {
TSKEY
minKey
;
TSKEY
maxKey
;
// writer
SSttFWriter
*
pWriter
;
struct
SSttFWriter
*
pWriter
;
}
SCommitter
;
static
int32_t
tsdbCommitOpenWriter
(
SCommitter
*
pCommitter
)
{
...
...
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.c
浏览文件 @
69a2f712
...
...
@@ -22,7 +22,7 @@ extern int32_t tsdbReadFile(STsdbFD *pFD, int64_t offset, uint8_t *pBuf, int64_t
extern
int32_t
tsdbFsyncFile
(
STsdbFD
*
pFD
);
struct
SSttFWriter
{
SSttFWriterConf
config
;
struct
SSttFWriterConf
config
;
// time-series data
SBlockData
bData
;
SArray
*
aSttBlk
;
// SArray<SSttBlk>
...
...
@@ -35,7 +35,7 @@ struct SSttFWriter {
STsdbFD
*
pFd
;
};
static
int32_t
write_ts_block
(
SSttFWriter
*
pWriter
)
{
static
int32_t
write_ts_block
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
int32_t
lino
;
...
...
@@ -73,28 +73,28 @@ _exit:
return
code
;
}
static
int32_t
write_del_block
(
SSttFWriter
*
pWriter
)
{
static
int32_t
write_del_block
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
// TODO
return
code
;
}
static
int32_t
write_stt_blk
(
SSttFWriter
*
pWriter
)
{
static
int32_t
write_stt_blk
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
// TODO
return
code
;
}
static
int32_t
write_del_blk
(
SSttFWriter
*
pWriter
)
{
static
int32_t
write_del_blk
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
// TODO
return
code
;
}
static
int32_t
stt_fwriter_create
(
const
SSttFWriterConf
*
pConf
,
SSttFWriter
**
ppWriter
)
{
static
int32_t
stt_fwriter_create
(
const
struct
SSttFWriterConf
*
pConf
,
struct
SSttFWriter
**
ppWriter
)
{
int32_t
code
=
0
;
if
((
ppWriter
[
0
]
=
taosMemoryCalloc
(
1
,
sizeof
(
SSttFWriter
)))
==
NULL
)
{
if
((
ppWriter
[
0
]
=
taosMemoryCalloc
(
1
,
sizeof
(
*
ppWriter
[
0
]
)))
==
NULL
)
{
code
=
TSDB_CODE_OUT_OF_MEMORY
;
goto
_exit
;
}
...
...
@@ -124,7 +124,7 @@ _exit:
return
code
;
}
static
int32_t
stt_fwriter_destroy
(
SSttFWriter
*
pWriter
)
{
static
int32_t
stt_fwriter_destroy
(
struct
SSttFWriter
*
pWriter
)
{
if
(
pWriter
)
{
tDestroyTSchema
(
pWriter
->
skmTb
.
pTSchema
);
tDestroyTSchema
(
pWriter
->
skmRow
.
pTSchema
);
...
...
@@ -135,19 +135,19 @@ static int32_t stt_fwriter_destroy(SSttFWriter *pWriter) {
return
0
;
}
static
int32_t
stt_fwriter_open
(
SSttFWriter
*
pWriter
)
{
static
int32_t
stt_fwriter_open
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
// TODO
return
code
;
}
static
int32_t
stt_fwriter_close
(
SSttFWriter
*
pWriter
)
{
static
int32_t
stt_fwriter_close
(
struct
SSttFWriter
*
pWriter
)
{
int32_t
code
=
0
;
// TODO
return
code
;
}
int32_t
tsdbSttFWriterOpen
(
const
SSttFWriterConf
*
pConf
,
SSttFWriter
**
ppWriter
)
{
int32_t
tsdbSttFWriterOpen
(
const
struct
SSttFWriterConf
*
pConf
,
struct
SSttFWriter
**
ppWriter
)
{
int32_t
code
=
0
;
int32_t
lino
;
...
...
@@ -168,7 +168,7 @@ _exit:
return
code
;
}
int32_t
tsdbSttFWriterClose
(
SSttFWriter
**
ppWriter
)
{
int32_t
tsdbSttFWriterClose
(
struct
SSttFWriter
**
ppWriter
)
{
int32_t
vgId
=
TD_VID
(
ppWriter
[
0
]
->
config
.
pTsdb
->
pVnode
);
int32_t
code
=
0
;
int32_t
lino
;
...
...
@@ -185,7 +185,7 @@ _exit:
return
code
;
}
int32_t
tsdbSttFWriteTSData
(
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
TSDBROW
*
pRow
)
{
int32_t
tsdbSttFWriteTSData
(
struct
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
TSDBROW
*
pRow
)
{
int32_t
code
=
0
;
int32_t
lino
;
...
...
@@ -225,7 +225,7 @@ _exit:
return
code
;
}
int32_t
tsdbSttFWriteDLData
(
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
SDelData
*
pDelData
)
{
int32_t
tsdbSttFWriteDLData
(
struct
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
SDelData
*
pDelData
)
{
int32_t
code
=
0
;
// TODO
return
code
;
...
...
source/dnode/vnode/src/tsdb/dev/tsdbSttFWriter.h
浏览文件 @
69a2f712
...
...
@@ -22,13 +22,13 @@
extern
"C"
{
#endif
typedef
struct
SSttFWriter
SSttFWriter
;
typedef
struct
SSttFWriterConf
SSttFWriterConf
;
struct
SSttFWriter
;
struct
SSttFWriterConf
;
int32_t
tsdbSttFWriterOpen
(
const
SSttFWriterConf
*
pConf
,
SSttFWriter
**
ppWriter
);
int32_t
tsdbSttFWriterClose
(
SSttFWriter
**
ppWriter
);
int32_t
tsdbSttFWriteTSData
(
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
TSDBROW
*
pRow
);
int32_t
tsdbSttFWriteDLData
(
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
SDelData
*
pDelData
);
int32_t
tsdbSttFWriterOpen
(
const
struct
SSttFWriterConf
*
pConf
,
struct
SSttFWriter
**
ppWriter
);
int32_t
tsdbSttFWriterClose
(
struct
SSttFWriter
**
ppWriter
);
int32_t
tsdbSttFWriteTSData
(
struct
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
TSDBROW
*
pRow
);
int32_t
tsdbSttFWriteDLData
(
struct
SSttFWriter
*
pWriter
,
TABLEID
*
tbid
,
SDelData
*
pDelData
);
struct
SSttFWriterConf
{
STsdb
*
pTsdb
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录