Merge pull request #1036 from taosdata/hjxilinx-patch-1

Update vnodeQueryImpl.c
This commit is contained in:
slguan 2019-12-31 16:51:13 +08:00 committed by GitHub
commit 6ea3ff8d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ static bool getQualifiedDataBlock(SMeterObj *pMeterObj, SQueryRuntimeEnv *pRunti
// load first data block into memory failed, caused by disk block error
bool blockLoaded = false;
while (blkIdx < pQuery->numOfBlocks) {
while (blkIdx < pQuery->numOfBlocks && blkIdx >= 0) {
pQuery->slot = blkIdx;
if (loadDataBlockIntoMem(&pQuery->pBlock[pQuery->slot], &pQuery->pFields[pQuery->slot], pRuntimeEnv, fid, true,
true) == 0) {