Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
aad386e7
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看板
提交
aad386e7
编写于
6月 05, 2023
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more code
上级
5d1783f4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
224 addition
and
52 deletion
+224
-52
source/dnode/vnode/src/tsdb/dev/inc/tsdbDataFileRW.h
source/dnode/vnode/src/tsdb/dev/inc/tsdbDataFileRW.h
+1
-0
source/dnode/vnode/src/tsdb/dev/tsdbDataFileRW.c
source/dnode/vnode/src/tsdb/dev/tsdbDataFileRW.c
+204
-33
source/dnode/vnode/src/tsdb/dev/tsdbSttFileRW.c
source/dnode/vnode/src/tsdb/dev/tsdbSttFileRW.c
+19
-19
未找到文件。
source/dnode/vnode/src/tsdb/dev/inc/tsdbDataFileRW.h
浏览文件 @
aad386e7
...
...
@@ -75,6 +75,7 @@ int32_t tsdbDataFileWriterClose(SDataFileWriter **writer, bool abort, TFileOpArr
int32_t
tsdbDataFileWriteTSData
(
SDataFileWriter
*
writer
,
SRowInfo
*
row
);
int32_t
tsdbDataFileWriteTSDataBlock
(
SDataFileWriter
*
writer
,
SBlockData
*
bData
);
int32_t
tsdbDataFileFlushTSDataBlock
(
SDataFileWriter
*
writer
);
int32_t
tsdbDataFileWriteTombRecord
(
SDataFileWriter
*
writer
,
const
STombRecord
*
record
);
#ifdef __cplusplus
}
...
...
source/dnode/vnode/src/tsdb/dev/tsdbDataFileRW.c
浏览文件 @
aad386e7
...
...
@@ -17,6 +17,7 @@
typedef
struct
{
SFDataPtr
blockIdxPtr
[
1
];
SFDataPtr
tombBlkPtr
[
1
];
// TODO: keep footer here
SFDataPtr
rsrvd
[
2
];
}
SDataFooter
;
...
...
@@ -29,6 +30,7 @@ struct SDataFileReader {
struct
{
bool
footerLoaded
;
bool
blockIdxLoaded
;
bool
tombBlkLoaded
;
TABLEID
tbid
[
1
];
}
ctx
[
1
];
...
...
@@ -37,6 +39,7 @@ struct SDataFileReader {
SDataFooter
footer
[
1
];
TBlockIdxArray
blockIdxArray
[
1
];
TDataBlkArray
dataBlkArray
[
1
];
TTombBlkArray
tombBlkArray
[
1
];
};
static
int32_t
tsdbDataFileReadFooter
(
SDataFileReader
*
reader
)
{
...
...
@@ -221,6 +224,34 @@ int32_t tsdbDataFileReadTombBlk(SDataFileReader *reader, const TTombBlkArray **t
int32_t
code
=
0
;
int32_t
lino
=
0
;
if
(
!
reader
->
ctx
->
tombBlkLoaded
)
{
if
(
!
reader
->
ctx
->
footerLoaded
)
{
code
=
tsdbDataFileReadFooter
(
reader
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
TARRAY2_CLEAR
(
reader
->
tombBlkArray
,
NULL
);
if
(
reader
->
footer
->
tombBlkPtr
->
size
)
{
code
=
tRealloc
(
&
reader
->
config
->
bufArr
[
0
],
reader
->
footer
->
tombBlkPtr
->
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbReadFile
(
reader
->
fd
[
TSDB_FTYPE_TOMB
],
reader
->
footer
->
tombBlkPtr
->
offset
,
reader
->
config
->
bufArr
[
0
],
reader
->
footer
->
tombBlkPtr
->
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
int32_t
size
=
reader
->
footer
->
tombBlkPtr
->
size
/
sizeof
(
STombBlk
);
for
(
int32_t
i
=
0
;
i
<
size
;
++
i
)
{
code
=
TARRAY2_APPEND_PTR
(
reader
->
tombBlkArray
,
((
STombBlk
*
)
reader
->
config
->
bufArr
[
0
])
+
i
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
}
reader
->
ctx
->
tombBlkLoaded
=
true
;
}
tombBlkArray
[
0
]
=
reader
->
tombBlkArray
;
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
reader
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
...
...
@@ -232,6 +263,26 @@ int32_t tsdbDataFileReadTombBlock(SDataFileReader *reader, const STombBlk *tombB
int32_t
code
=
0
;
int32_t
lino
=
0
;
code
=
tRealloc
(
&
reader
->
config
->
bufArr
[
0
],
tombBlk
->
dp
->
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbReadFile
(
reader
->
fd
[
TSDB_FTYPE_TOMB
],
tombBlk
->
dp
->
offset
,
reader
->
config
->
bufArr
[
0
],
tombBlk
->
dp
->
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
tTombBlockClear
(
tData
);
int32_t
size
=
0
;
for
(
int32_t
i
=
0
;
i
<
ARRAY_SIZE
(
tData
->
dataArr
);
++
i
)
{
code
=
tsdbDecmprData
(
reader
->
config
->
bufArr
[
0
]
+
size
,
tombBlk
->
size
[
i
],
TSDB_DATA_TYPE_BIGINT
,
TWO_STAGE_COMP
,
&
reader
->
config
->
bufArr
[
1
],
0
,
&
reader
->
config
->
bufArr
[
2
]);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
for
(
int32_t
j
=
0
;
j
<
tombBlk
->
numRec
;
j
++
)
{
code
=
TARRAY2_APPEND_PTR
(
tData
->
dataArr
+
i
,
((
int64_t
*
)
reader
->
config
->
bufArr
[
1
])
+
j
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
}
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
reader
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
...
...
@@ -266,9 +317,10 @@ struct SDataFileWriter {
SDataFooter
footer
[
1
];
TBlockIdxArray
blockIdxArray
[
1
];
TDataBlkArray
dataBlkArray
[
1
];
TTombBlkArray
tombBlkArray
[
1
];
SBlockData
bData
[
1
];
SDelData
dData
[
1
];
STbStatisBlock
sData
[
1
];
STombBlock
tData
[
1
];
};
static
int32_t
tsdbDataFileWriteBlockIdx
(
SDataFileWriter
*
writer
)
{
...
...
@@ -731,6 +783,89 @@ _exit:
return
code
;
}
static
int32_t
tsdbDataFileDoWriteTombBlock
(
SDataFileWriter
*
writer
)
{
if
(
TOMB_BLOCK_SIZE
(
writer
->
tData
)
==
0
)
return
0
;
int32_t
code
=
0
;
int32_t
lino
=
0
;
STombBlk
tombBlk
[
1
]
=
{{
.
numRec
=
TOMB_BLOCK_SIZE
(
writer
->
tData
),
.
minTid
=
{
.
suid
=
TARRAY2_FIRST
(
writer
->
tData
->
suid
),
.
uid
=
TARRAY2_FIRST
(
writer
->
tData
->
uid
),
},
.
maxTid
=
{
.
suid
=
TARRAY2_LAST
(
writer
->
tData
->
suid
),
.
uid
=
TARRAY2_LAST
(
writer
->
tData
->
uid
),
},
.
minVer
=
TARRAY2_FIRST
(
writer
->
tData
->
version
),
.
maxVer
=
TARRAY2_FIRST
(
writer
->
tData
->
version
),
.
dp
[
0
]
=
{
.
offset
=
writer
->
files
[
TSDB_FTYPE_TOMB
].
size
,
.
size
=
0
,
},
}};
for
(
int32_t
i
=
1
;
i
<
TOMB_BLOCK_SIZE
(
writer
->
tData
);
i
++
)
{
tombBlk
->
minVer
=
TMIN
(
tombBlk
->
minVer
,
TARRAY2_GET
(
writer
->
tData
->
version
,
i
));
tombBlk
->
maxVer
=
TMAX
(
tombBlk
->
maxVer
,
TARRAY2_GET
(
writer
->
tData
->
version
,
i
));
}
for
(
int32_t
i
=
0
;
i
<
ARRAY_SIZE
(
writer
->
tData
->
dataArr
);
i
++
)
{
int32_t
size
;
code
=
tsdbCmprData
((
uint8_t
*
)
TARRAY2_DATA
(
&
writer
->
tData
->
dataArr
[
i
]),
TARRAY2_DATA_LEN
(
&
writer
->
tData
->
dataArr
[
i
]),
TSDB_DATA_TYPE_BIGINT
,
TWO_STAGE_COMP
,
&
writer
->
config
->
bufArr
[
0
],
0
,
&
size
,
&
writer
->
config
->
bufArr
[
1
]);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbWriteFile
(
writer
->
fd
[
TSDB_FTYPE_TOMB
],
writer
->
files
[
TSDB_FTYPE_TOMB
].
size
,
writer
->
config
->
bufArr
[
0
],
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
tombBlk
->
size
[
i
]
=
size
;
tombBlk
->
dp
[
0
].
size
+=
size
;
writer
->
files
[
TSDB_FTYPE_TOMB
].
size
+=
size
;
}
code
=
TARRAY2_APPEND_PTR
(
writer
->
tombBlkArray
,
tombBlk
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
tTombBlockClear
(
writer
->
tData
);
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
writer
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
}
return
code
;
}
static
int32_t
tsdbDataFileDoWriteTombBlk
(
SDataFileWriter
*
writer
)
{
if
(
writer
->
fd
[
TSDB_FTYPE_TOMB
]
==
NULL
)
return
0
;
int32_t
code
=
0
;
int32_t
lino
=
0
;
writer
->
footer
->
tombBlkPtr
->
offset
=
writer
->
files
[
TSDB_FTYPE_TOMB
].
size
;
writer
->
footer
->
tombBlkPtr
->
size
=
TARRAY2_DATA_LEN
(
writer
->
tombBlkArray
);
if
(
writer
->
footer
->
tombBlkPtr
->
size
)
{
code
=
tsdbWriteFile
(
writer
->
fd
[
TSDB_FTYPE_TOMB
],
writer
->
footer
->
tombBlkPtr
->
offset
,
(
const
uint8_t
*
)
TARRAY2_DATA
(
writer
->
tombBlkArray
),
writer
->
footer
->
tombBlkPtr
->
size
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
writer
->
files
[
TSDB_FTYPE_TOMB
].
size
+=
writer
->
footer
->
tombBlkPtr
->
size
;
}
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
writer
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
}
return
code
;
}
static
int32_t
tsdbDataFileWriterCloseCommit
(
SDataFileWriter
*
writer
,
TFileOpArray
*
opArr
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
...
...
@@ -745,6 +880,12 @@ static int32_t tsdbDataFileWriterCloseCommit(SDataFileWriter *writer, TFileOpArr
code
=
tsdbDataFileWriteBlockIdx
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbDataFileDoWriteTombBlock
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbDataFileDoWriteTombBlk
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
code
=
tsdbDataFileWriteFooter
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
...
...
@@ -838,38 +979,6 @@ _exit:
return
code
;
}
int32_t
tsdbDataFileWriterOpen
(
const
SDataFileWriterConfig
*
config
,
SDataFileWriter
**
writer
)
{
writer
[
0
]
=
taosMemoryCalloc
(
1
,
sizeof
(
SDataFileWriter
));
if
(
!
writer
[
0
])
return
TSDB_CODE_OUT_OF_MEMORY
;
writer
[
0
]
->
config
[
0
]
=
config
[
0
];
return
0
;
}
int32_t
tsdbDataFileWriterClose
(
SDataFileWriter
**
writer
,
bool
abort
,
TFileOpArray
*
opArr
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
if
(
writer
[
0
]
->
ctx
->
opened
)
{
if
(
abort
)
{
code
=
tsdbDataFileWriterCloseAbort
(
writer
[
0
]);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
else
{
code
=
tsdbDataFileWriterCloseCommit
(
writer
[
0
],
opArr
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
tsdbDataFileWriterDoClose
(
writer
[
0
]);
}
taosMemoryFree
(
writer
[
0
]);
writer
[
0
]
=
NULL
;
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
writer
[
0
]
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
}
return
code
;
}
static
int32_t
tsdbDataFileWriterOpenDataFD
(
SDataFileWriter
*
writer
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
...
...
@@ -903,6 +1012,38 @@ _exit:
return
code
;
}
int32_t
tsdbDataFileWriterOpen
(
const
SDataFileWriterConfig
*
config
,
SDataFileWriter
**
writer
)
{
writer
[
0
]
=
taosMemoryCalloc
(
1
,
sizeof
(
SDataFileWriter
));
if
(
!
writer
[
0
])
return
TSDB_CODE_OUT_OF_MEMORY
;
writer
[
0
]
->
config
[
0
]
=
config
[
0
];
return
0
;
}
int32_t
tsdbDataFileWriterClose
(
SDataFileWriter
**
writer
,
bool
abort
,
TFileOpArray
*
opArr
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
if
(
writer
[
0
]
->
ctx
->
opened
)
{
if
(
abort
)
{
code
=
tsdbDataFileWriterCloseAbort
(
writer
[
0
]);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
else
{
code
=
tsdbDataFileWriterCloseCommit
(
writer
[
0
],
opArr
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
tsdbDataFileWriterDoClose
(
writer
[
0
]);
}
taosMemoryFree
(
writer
[
0
]);
writer
[
0
]
=
NULL
;
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
writer
[
0
]
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
}
return
code
;
}
int32_t
tsdbDataFileWriteTSData
(
SDataFileWriter
*
writer
,
SRowInfo
*
row
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
...
...
@@ -990,3 +1131,33 @@ int32_t tsdbDataFileFlushTSDataBlock(SDataFileWriter *writer) {
return
tsdbDataFileWriteDataBlock
(
writer
,
writer
->
bData
);
}
int32_t
tsdbDataFileWriteTombRecord
(
SDataFileWriter
*
writer
,
const
STombRecord
*
record
)
{
int32_t
code
=
0
;
int32_t
lino
=
0
;
#if 1
if
(
!
writer
->
ctx
->
opened
)
{
code
=
tsdbDataFileWriterDoOpen
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
if
(
writer
->
fd
[
TSDB_FTYPE_TOMB
]
==
NULL
)
{
// TODO
}
#endif
code
=
tTombBlockPut
(
writer
->
tData
,
record
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
if
(
TOMB_BLOCK_SIZE
(
writer
->
tData
)
>=
writer
->
config
->
maxRow
)
{
code
=
tsdbDataFileDoWriteTombBlock
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
_exit:
if
(
code
)
{
TSDB_ERROR_LOG
(
TD_VID
(
writer
->
config
->
tsdb
->
pVnode
),
lino
,
code
);
}
return
code
;
}
\ No newline at end of file
source/dnode/vnode/src/tsdb/dev/tsdbSttFileRW.c
浏览文件 @
aad386e7
...
...
@@ -331,7 +331,7 @@ struct SSttFileWriter {
SSttFooter
footer
[
1
];
SBlockData
bData
[
1
];
STbStatisBlock
sData
[
1
];
STombBlock
d
Data
[
1
];
STombBlock
t
Data
[
1
];
// helper data
SSkmInfo
skmTb
[
1
];
SSkmInfo
skmRow
[
1
];
...
...
@@ -445,25 +445,25 @@ _exit:
}
static
int32_t
tsdbSttFileDoWriteTombBlock
(
SSttFileWriter
*
writer
)
{
if
(
TOMB_BLOCK_SIZE
(
writer
->
d
Data
)
==
0
)
return
0
;
if
(
TOMB_BLOCK_SIZE
(
writer
->
t
Data
)
==
0
)
return
0
;
int32_t
code
=
0
;
int32_t
lino
=
0
;
STombBlk
tombBlk
[
1
]
=
{{
.
numRec
=
TOMB_BLOCK_SIZE
(
writer
->
d
Data
),
.
numRec
=
TOMB_BLOCK_SIZE
(
writer
->
t
Data
),
.
minTid
=
{
.
suid
=
TARRAY2_FIRST
(
writer
->
d
Data
->
suid
),
.
uid
=
TARRAY2_FIRST
(
writer
->
d
Data
->
uid
),
.
suid
=
TARRAY2_FIRST
(
writer
->
t
Data
->
suid
),
.
uid
=
TARRAY2_FIRST
(
writer
->
t
Data
->
uid
),
},
.
maxTid
=
{
.
suid
=
TARRAY2_LAST
(
writer
->
d
Data
->
suid
),
.
uid
=
TARRAY2_LAST
(
writer
->
d
Data
->
uid
),
.
suid
=
TARRAY2_LAST
(
writer
->
t
Data
->
suid
),
.
uid
=
TARRAY2_LAST
(
writer
->
t
Data
->
uid
),
},
.
minVer
=
TARRAY2_FIRST
(
writer
->
d
Data
->
version
),
.
maxVer
=
TARRAY2_FIRST
(
writer
->
d
Data
->
version
),
.
minVer
=
TARRAY2_FIRST
(
writer
->
t
Data
->
version
),
.
maxVer
=
TARRAY2_FIRST
(
writer
->
t
Data
->
version
),
.
dp
[
0
]
=
{
.
offset
=
writer
->
file
->
size
,
...
...
@@ -471,15 +471,15 @@ static int32_t tsdbSttFileDoWriteTombBlock(SSttFileWriter *writer) {
},
}};
for
(
int32_t
i
=
1
;
i
<
TOMB_BLOCK_SIZE
(
writer
->
d
Data
);
i
++
)
{
tombBlk
->
minVer
=
TMIN
(
tombBlk
->
minVer
,
TARRAY2_GET
(
writer
->
d
Data
->
version
,
i
));
tombBlk
->
maxVer
=
TMAX
(
tombBlk
->
maxVer
,
TARRAY2_GET
(
writer
->
d
Data
->
version
,
i
));
for
(
int32_t
i
=
1
;
i
<
TOMB_BLOCK_SIZE
(
writer
->
t
Data
);
i
++
)
{
tombBlk
->
minVer
=
TMIN
(
tombBlk
->
minVer
,
TARRAY2_GET
(
writer
->
t
Data
->
version
,
i
));
tombBlk
->
maxVer
=
TMAX
(
tombBlk
->
maxVer
,
TARRAY2_GET
(
writer
->
t
Data
->
version
,
i
));
}
for
(
int32_t
i
=
0
;
i
<
ARRAY_SIZE
(
writer
->
d
Data
->
dataArr
);
i
++
)
{
for
(
int32_t
i
=
0
;
i
<
ARRAY_SIZE
(
writer
->
t
Data
->
dataArr
);
i
++
)
{
int32_t
size
;
code
=
tsdbCmprData
((
uint8_t
*
)
TARRAY2_DATA
(
&
writer
->
d
Data
->
dataArr
[
i
]),
TARRAY2_DATA_LEN
(
&
writer
->
d
Data
->
dataArr
[
i
]),
TSDB_DATA_TYPE_BIGINT
,
TWO_STAGE_COMP
,
code
=
tsdbCmprData
((
uint8_t
*
)
TARRAY2_DATA
(
&
writer
->
t
Data
->
dataArr
[
i
]),
TARRAY2_DATA_LEN
(
&
writer
->
t
Data
->
dataArr
[
i
]),
TSDB_DATA_TYPE_BIGINT
,
TWO_STAGE_COMP
,
&
writer
->
config
->
aBuf
[
0
],
0
,
&
size
,
&
writer
->
config
->
aBuf
[
1
]);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
...
...
@@ -494,7 +494,7 @@ static int32_t tsdbSttFileDoWriteTombBlock(SSttFileWriter *writer) {
code
=
TARRAY2_APPEND_PTR
(
writer
->
tombBlkArray
,
tombBlk
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
tTombBlockClear
(
writer
->
d
Data
);
tTombBlockClear
(
writer
->
t
Data
);
_exit:
if
(
code
)
{
...
...
@@ -624,7 +624,7 @@ static void tsdbSttFWriterDoClose(SSttFileWriter *writer) {
tDestroyTSchema
(
writer
->
skmRow
->
pTSchema
);
tDestroyTSchema
(
writer
->
skmTb
->
pTSchema
);
tStatisBlockFree
(
writer
->
sData
);
tTombBlockFree
(
writer
->
d
Data
);
tTombBlockFree
(
writer
->
t
Data
);
tBlockDataDestroy
(
writer
->
bData
);
TARRAY2_FREE
(
writer
->
tombBlkArray
);
TARRAY2_FREE
(
writer
->
statisBlkArray
);
...
...
@@ -872,11 +872,11 @@ int32_t tsdbSttFileWriteTombRecord(SSttFileWriter *writer, const STombRecord *re
}
// write SDelRecord
code
=
tTombBlockPut
(
writer
->
d
Data
,
record
);
code
=
tTombBlockPut
(
writer
->
t
Data
,
record
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
// write SDelBlock if need
if
(
TOMB_BLOCK_SIZE
(
writer
->
d
Data
)
>=
writer
->
config
->
maxRow
)
{
if
(
TOMB_BLOCK_SIZE
(
writer
->
t
Data
)
>=
writer
->
config
->
maxRow
)
{
code
=
tsdbSttFileDoWriteTombBlock
(
writer
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录