提交 9cc4721e 编写于 作者: H Haojun Liao

refactor: do some internal refactor.

上级 d8e0d02e
......@@ -3529,8 +3529,9 @@ static int32_t buildBlockFromFiles(STsdbReader* pReader) {
SSDataBlock* pResBlock = pReader->resBlockInfo.pResBlock;
if (pBlockIter->numOfBlocks == 0) {
// let's try to extract data from stt files.
ERetrieveType type = doReadDataFromLastFiles(pReader);
if (type != TSDB_READ_RETURN) {
if (type == TSDB_READ_RETURN) {
return terrno;
}
......@@ -3571,7 +3572,7 @@ static int32_t buildBlockFromFiles(STsdbReader* pReader) {
resetTableListIndex(&pReader->status);
ERetrieveType type = doReadDataFromLastFiles(pReader);
if (type != TSDB_READ_RETURN) {
if (type == TSDB_READ_RETURN) {
return terrno;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册