fix(query): set the correct rows in data block.

This commit is contained in:
Haojun Liao 2023-02-18 19:47:18 +08:00
parent 4853522e11
commit 59c72beb8d
1 changed files with 3 additions and 1 deletions

View File

@ -966,7 +966,9 @@ static int32_t mndRetrieveSubscribe(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock
while (numOfRows < rowsCapacity) {
pShow->pIter = sdbFetch(pSdb, SDB_SUBSCRIBE, pShow->pIter, (void **)&pSub);
if (pShow->pIter == NULL) break;
if (pShow->pIter == NULL) {
break;
}
taosRLockLatch(&pSub->lock);