diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 8fa26f56c9a4707a33cf86a5fc8aab707a21cdf1..a80839f1a21c6ff6b45d4843b40ffbf461cf2871 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -2772,7 +2772,7 @@ int tscProcessQueryRsp(SSqlObj *pSql) { pRes->data = NULL; tscResetForNextRetrieve(pRes); - pSql->rspReceived = 1; + pSql->rootObj->rspReceived = 1; tscDebug("0x%"PRIx64" query rsp received, qId:0x%"PRIx64, pSql->self, pRes->qId); return 0; } diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 4acf173c9bdef0e222c453794f541ac514a96f56..f1c4bb29f36b48f0f3fa9e670e48c89bf7fdbfd8 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -1716,7 +1716,7 @@ void tscFetchDatablockForSubquery(SSqlObj* pSql) { STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, 0); if (pRes1->row >= pRes1->numOfRows) { - assert(pSql1->rspReceived == 1); + assert(pSql1->rootObj->rspReceived == 1); tscDebug("0x%"PRIx64" subquery:0x%"PRIx64" retrieve data from vnode, subquery:%d, vgroupIndex:%d", pSql->self, pSql1->self, pSupporter->subqueryIndex, pTableMetaInfo->vgroupIndex);