fix(tsdb): return value if failed.
This commit is contained in:
parent
72d44d4207
commit
60308ae844
|
@ -3649,12 +3649,14 @@ static int32_t doReadDataFromSttFiles(STsdbReader* pReader, ERetrieveType* pRetu
|
|||
|
||||
if (pBlockIter->numOfBlocks > 0) { // there are data blocks existed.
|
||||
*pReturnType = TSDB_READ_CONTINUE;
|
||||
return code;
|
||||
} else { // all blocks in data file are checked, let's check the data in stt-files
|
||||
code = resetTableListIndex(&pReader->status, pReader->idStr);
|
||||
}
|
||||
|
||||
if (code) {
|
||||
return code;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static int32_t buildBlockFromFiles(STsdbReader* pReader) {
|
||||
|
|
Loading…
Reference in New Issue