Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
4f06c4bb
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看板
提交
4f06c4bb
编写于
8月 08, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
make it compile
上级
49fde0b1
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
8 deletion
+8
-8
source/dnode/vnode/src/tsdb/tsdbCache.c
source/dnode/vnode/src/tsdb/tsdbCache.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbCommit.c
source/dnode/vnode/src/tsdb/tsdbCommit.c
+6
-6
source/dnode/vnode/src/tsdb/tsdbRead.c
source/dnode/vnode/src/tsdb/tsdbRead.c
+1
-1
未找到文件。
source/dnode/vnode/src/tsdb/tsdbCache.c
浏览文件 @
4f06c4bb
...
...
@@ -507,7 +507,7 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow) {
tMapDataGetItemByIdx
(
&
state
->
blockMap
,
state
->
iBlock
,
&
block
,
tGetBlock
);
/* code = tsdbReadBlockData(state->pDataFReader, &state->blockIdx, &block, &state->blockData, NULL, NULL); */
code
=
tsdbReadDataBlock
(
state
->
pDataFReader
,
&
block
,
state
->
pBlockData
,
NULL
,
0
);
code
=
tsdbReadDataBlock
(
state
->
pDataFReader
,
&
block
,
state
->
pBlockData
);
if
(
code
)
goto
_err
;
state
->
nRow
=
state
->
blockData
.
nRow
;
...
...
source/dnode/vnode/src/tsdb/tsdbCommit.c
浏览文件 @
4f06c4bb
...
...
@@ -309,7 +309,7 @@ static int32_t tsdbCommitterNextLastRow(SCommitter *pCommitter) {
pCommitter
->
dReader
.
iBlockL
++
;
if
(
pCommitter
->
dReader
.
iBlockL
<
taosArrayGetSize
(
pCommitter
->
dReader
.
aBlockL
))
{
pCommitter
->
dReader
.
pBlockL
=
(
SBlockL
*
)
taosArrayGet
(
pCommitter
->
dReader
.
aBlockL
,
pCommitter
->
dReader
.
iBlockL
);
code
=
tsdbReadLastBlock
(
pCommitter
->
dReader
.
pReader
,
pCommitter
->
dReader
.
pBlockL
,
pBlockDatal
,
NULL
,
0
);
code
=
tsdbReadLastBlock
(
pCommitter
->
dReader
.
pReader
,
pCommitter
->
dReader
.
pBlockL
,
pBlockDatal
);
if
(
code
)
goto
_exit
;
pCommitter
->
dReader
.
iRow
=
0
;
...
...
@@ -593,7 +593,7 @@ static int32_t tsdbMergeCommitData(SCommitter *pCommitter, STbDataIter *pIter, S
SBlockData
*
pBlockDataR
=
&
pCommitter
->
dReader
.
bData
;
SBlockData
*
pBlockDataW
=
&
pCommitter
->
dWriter
.
bData
;
code
=
tsdbReadDataBlock
(
pCommitter
->
dReader
.
pReader
,
pBlock
,
pBlockDataR
,
NULL
,
0
);
code
=
tsdbReadDataBlock
(
pCommitter
->
dReader
.
pReader
,
pBlock
,
pBlockDataR
);
if
(
code
)
goto
_err
;
tBlockDataClear
(
pBlockDataW
);
...
...
@@ -823,8 +823,8 @@ static int32_t tsdbMergeCommitLast(SCommitter *pCommitter, STbDataIter *pIter) {
// set block data schema if need
if
(
pBlockData
->
suid
==
0
&&
pBlockData
->
uid
==
0
)
{
code
=
tBlockDataSetSchema
(
pBlockData
,
pCommitter
->
skmTable
.
pTSchema
,
pTbData
->
suid
,
pTbData
->
suid
?
0
:
pTbData
->
uid
);
code
=
tBlockDataInit
(
pBlockData
,
pTbData
->
suid
,
pTbData
->
suid
?
0
:
pTbData
->
uid
,
pCommitter
->
skmTable
.
pTSchema
);
if
(
code
)
goto
_err
;
}
...
...
@@ -966,7 +966,7 @@ static int32_t tsdbCommitTableData(SCommitter *pCommitter, STbData *pTbData) {
if
(
code
)
goto
_err
;
tMapDataReset
(
&
pCommitter
->
dWriter
.
mBlock
);
code
=
tBlockData
SetSchema
(
&
pCommitter
->
dWriter
.
bData
,
pCommitter
->
skmTable
.
pTSchema
,
pTbData
->
suid
,
pTbData
->
uid
);
code
=
tBlockData
Init
(
&
pCommitter
->
dWriter
.
bData
,
pTbData
->
suid
,
pTbData
->
uid
,
pCommitter
->
skmTable
.
pTSchema
);
if
(
code
)
goto
_err
;
// .data merge
...
...
@@ -1144,7 +1144,7 @@ static int32_t tsdbMoveCommitData(SCommitter *pCommitter, TABLEID toTable) {
code
=
tsdbCommitterUpdateTableSchema
(
pCommitter
,
suid
,
uid
,
1
/*TOOD*/
);
if
(
code
)
goto
_err
;
code
=
tBlockData
SetSchema
(
pBlockDataW
,
pCommitter
->
skmTable
.
pTSchema
,
suid
,
suid
?
0
:
uid
);
code
=
tBlockData
Init
(
pBlockDataW
,
suid
,
suid
?
0
:
uid
,
pCommitter
->
skmTable
.
pTSchema
);
if
(
code
)
goto
_err
;
}
...
...
source/dnode/vnode/src/tsdb/tsdbRead.c
浏览文件 @
4f06c4bb
...
...
@@ -785,7 +785,7 @@ static int32_t doLoadFileBlockData(STsdbReader* pReader, SDataBlockIter* pBlockI
SFileBlockDumpInfo
*
pDumpInfo
=
&
pReader
->
status
.
fBlockDumpInfo
;
SBlockIdx
blockIdx
=
{.
suid
=
pReader
->
suid
,
.
uid
=
pBlockScanInfo
->
uid
};
int32_t
code
=
tsdbReadDataBlock
(
pReader
->
pFileReader
,
pBlock
,
pBlockData
,
pSupInfo
->
colIds
,
numOfCols
);
int32_t
code
=
tsdbReadDataBlock
(
pReader
->
pFileReader
,
pBlock
,
pBlockData
/*, pSupInfo->colIds, numOfCols*/
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
goto
_error
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录