提交 702202d4 编写于 作者: D dapan1121

fix: fix block scan issue

上级 22ad3129
......@@ -4496,17 +4496,16 @@ static int32_t doTsdbNextDataBlock(STsdbReader* pReader, bool *hasNext) {
return code;
}
if (pBlock->info.rows > 0) {
*hasNext = true;
} else {
if (pBlock->info.rows <= 0) {
resetTableListIndex(&pReader->status);
code = buildBlockFromBufferSequentially(pReader);
}
} else { // no data in files, let's try the buffer
code = buildBlockFromBufferSequentially(pReader);
*hasNext = pBlock->info.rows > 0;
}
*hasNext = pBlock->info.rows > 0;
return code;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册