fix: check completeness of retrieval properly in mndProcessRetrieveSysTableReq

This commit is contained in:
Benguang Zhao 2023-08-29 15:22:29 +08:00
parent 5e5b7a3328
commit a6455672c0
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static int32_t mndProcessRetrieveSysTableReq(SRpcMsg *pReq) {
pReq->info.rsp = pRsp;
pReq->info.rspLen = size;
if (rowsRead == 0 || ((rowsRead < rowsToRead) && !pShow->restore)) {
if (rowsRead == 0 || mndCheckRetrieveFinished(pShow)) {
pRsp->completed = 1;
mDebug("show:0x%" PRIx64 ", retrieve completed", pShow->id);
mndReleaseShowObj(pShow, true);