提交 7221f447 编写于 作者: D dapan1121

fix: group cache table index issue

上级 3f58bc55
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册