fix: group cache table index issue
This commit is contained in:
parent
3f58bc5578
commit
7221f447df
|
@ -583,7 +583,7 @@ static int32_t getBlkFromSessionCacheImpl(struct SOperatorInfo* pOperator, int64
|
|||
pSession->lastBlkId = 0;
|
||||
return code;
|
||||
}
|
||||
} else if (pSession->lastBlkId < blkNum) {
|
||||
} else if ((pSession->lastBlkId + 1) < blkNum) {
|
||||
int64_t* pIdx = taosArrayGet(pBatchList->pBlkList, pSession->lastBlkId + 1);
|
||||
taosRUnLockLatch(&pBatchList->lock);
|
||||
code = retrieveBlkFromBufCache(pGCache, pSession->pGroupData, sessionId, *pIdx, &pSession->nextOffset, ppRes);
|
||||
|
|
Loading…
Reference in New Issue