dmchen/trans-improve-show-all-trans

This commit is contained in:
dmchen 2024-11-08 15:44:43 +08:00
parent 50affc90f8
commit 43e7fc36d0
1 changed files with 2 additions and 2 deletions

View File

@ -2435,13 +2435,13 @@ static int32_t mndRetrieveTransDetail(SRpcMsg *pReq, SShowObj *pShow, SSDataBloc
if (numOfRows >= rows) break;
}
if (pShow->numOfRows + numOfRows == actionNum) {
if (numOfRows == actionNum - pShowIter->num) {
sdbRelease(pSdb, pTrans);
pShowIter->pTrans = NULL;
} else {
pShowIter->pTrans = pTrans;
pShowIter->stage = pTrans->stage;
pShowIter->num = numOfRows;
pShowIter->num += numOfRows;
}
break;
}