fix(query): reset the errno code.
This commit is contained in:
parent
f0dda78c61
commit
5b82556ff5
|
@ -833,6 +833,7 @@ bool tLDataIterNextRow(SLDataIter *pIter, const char *idStr) {
|
|||
int32_t code = 0;
|
||||
int32_t iBlockL = pIter->iSttBlk;
|
||||
SBlockData *pBlockData = NULL;
|
||||
terrno = 0;
|
||||
|
||||
// no qualified last file block in current file, no need to fetch row
|
||||
if (pIter->pSttBlk == NULL) {
|
||||
|
|
|
@ -3598,6 +3598,7 @@ static int32_t buildBlockFromFiles(STsdbReader* pReader) {
|
|||
|
||||
if (pBlockIter->numOfBlocks == 0) {
|
||||
// let's try to extract data from stt files.
|
||||
terrno = 0;
|
||||
ERetrieveType type = doReadDataFromSttFiles(pReader);
|
||||
if (type == TSDB_READ_RETURN) {
|
||||
return terrno;
|
||||
|
|
Loading…
Reference in New Issue