[td-225] add checks.

This commit is contained in:
Haojun Liao 2020-07-22 13:09:53 +08:00
parent 7ff6bc2eb0
commit 7e7f91b8fc
1 changed files with 1 additions and 0 deletions

View File

@ -1490,6 +1490,7 @@ static int32_t getDataBlocksInFilesImpl(STsdbQueryHandle* pQueryHandle, bool* ex
return code;
}
assert(pQueryHandle->pFileGroup != NULL);
cur->slot = ASCENDING_TRAVERSE(pQueryHandle->order)? 0:pQueryHandle->numOfBlocks-1;
cur->fid = pQueryHandle->pFileGroup->fileId;