Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a76e47ef
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看板
提交
a76e47ef
编写于
5月 11, 2023
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: add some logs.
上级
f0f90888
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
13 addition
and
10 deletion
+13
-10
source/dnode/vnode/src/tq/tqRead.c
source/dnode/vnode/src/tq/tqRead.c
+1
-1
source/libs/executor/src/scanoperator.c
source/libs/executor/src/scanoperator.c
+12
-9
未找到文件。
source/dnode/vnode/src/tq/tqRead.c
浏览文件 @
a76e47ef
...
...
@@ -504,7 +504,7 @@ int32_t tqMaskBlock(SSchemaWrapper* pDst, SSDataBlock* pBlock, const SSchemaWrap
}
int32_t
tqRetrieveDataBlock
(
STqReader
*
pReader
,
const
char
*
idstr
)
{
tqDebug
(
"tq reader retrieve data block %p, index:%d
, total:
%d, %s"
,
pReader
->
msg
.
msgStr
,
pReader
->
nextBlk
,
tqDebug
(
"tq reader retrieve data block %p, index:%d
/
%d, %s"
,
pReader
->
msg
.
msgStr
,
pReader
->
nextBlk
,
(
int32_t
)
taosArrayGetSize
(
pReader
->
submit
.
aSubmitTbData
),
idstr
);
SSubmitTbData
*
pSubmitTbData
=
taosArrayGet
(
pReader
->
submit
.
aSubmitTbData
,
pReader
->
nextBlk
++
);
...
...
source/libs/executor/src/scanoperator.c
浏览文件 @
a76e47ef
...
...
@@ -2046,17 +2046,18 @@ FETCH_NEXT_BLOCK:
return
pInfo
->
pUpdateRes
;
}
const
char
*
id
=
GET_TASKID
(
pTaskInfo
);
SDataBlockInfo
*
pBlockInfo
=
&
pInfo
->
pRes
->
info
;
int32_t
totBlockNum
=
taosArrayGetSize
(
pInfo
->
pBlockLists
);
int32_t
totalBlocks
=
taosArrayGetSize
(
pInfo
->
pBlockLists
);
NEXT_SUBMIT_BLK:
while
(
1
)
{
if
(
pInfo
->
tqReader
->
msg
.
msgStr
==
NULL
)
{
if
(
pInfo
->
validBlockIndex
>=
tot
BlockNum
)
{
if
(
pInfo
->
validBlockIndex
>=
tot
alBlocks
)
{
updateInfoDestoryColseWinSBF
(
pInfo
->
pUpdateInfo
);
doClearBufferedBlocks
(
pInfo
);
qDebug
(
"stream scan return empty, consume block %d"
,
totBlockNum
);
qDebug
(
"stream scan return empty, all %d submit blocks consumed, %s"
,
totalBlocks
,
id
);
void
*
buff
=
NULL
;
// int32_t len = streamScanOperatorEncode(pInfo, &buff);
// if (len > 0) {
...
...
@@ -2068,17 +2069,18 @@ FETCH_NEXT_BLOCK:
int32_t
current
=
pInfo
->
validBlockIndex
++
;
SPackedData
*
pSubmit
=
taosArrayGet
(
pInfo
->
pBlockLists
,
current
);
qDebug
(
"set %d/%d as the input submit block, %s"
,
current
,
totalBlocks
,
id
);
if
(
tqReaderSetSubmitMsg
(
pInfo
->
tqReader
,
pSubmit
->
msgStr
,
pSubmit
->
msgLen
,
pSubmit
->
ver
)
<
0
)
{
qError
(
"submit msg messed up when initing stream submit block %p, current %d, total %d"
,
pSubmit
,
current
,
totBlockNum
);
qError
(
"submit msg messed up when initializing stream submit block %p, current %d/%d, %s"
,
pSubmit
,
current
,
totalBlocks
,
id
);
continue
;
}
}
blockDataCleanup
(
pInfo
->
pRes
);
while
(
tqNextBlockImpl
(
pInfo
->
tqReader
,
pTaskInfo
->
id
.
str
))
{
int32_t
code
=
tqRetrieveDataBlock
(
pInfo
->
tqReader
,
pTaskInfo
->
id
.
str
);
while
(
tqNextBlockImpl
(
pInfo
->
tqReader
,
id
))
{
int32_t
code
=
tqRetrieveDataBlock
(
pInfo
->
tqReader
,
id
);
if
(
code
!=
TSDB_CODE_SUCCESS
||
pInfo
->
tqReader
->
pResBlock
->
info
.
rows
==
0
)
{
continue
;
}
...
...
@@ -2099,6 +2101,7 @@ FETCH_NEXT_BLOCK:
break
;
}
}
if
(
pBlockInfo
->
rows
>
0
||
pInfo
->
pUpdateDataRes
->
info
.
rows
>
0
)
{
break
;
}
else
{
...
...
@@ -2110,7 +2113,7 @@ FETCH_NEXT_BLOCK:
pInfo
->
numOfExec
++
;
pOperator
->
resultInfo
.
totalRows
+=
pBlockInfo
->
rows
;
qDebug
(
"s
can rows: %"
PRId64
", %s"
,
pBlockInfo
->
rows
,
pTaskInfo
->
id
.
str
);
qDebug
(
"s
tream scan get source rows:%"
PRId64
", %s"
,
pBlockInfo
->
rows
,
id
);
if
(
pBlockInfo
->
rows
>
0
)
{
return
pInfo
->
pRes
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录