[td-225]fix the bug found by regression test.
This commit is contained in:
parent
1c9a3a9f7b
commit
329f065ef5
|
@ -2071,8 +2071,7 @@ int tscProcessSTableVgroupRsp(SSqlObj *pSql) {
|
|||
|
||||
pInfo->vgroupList->numOfVgroups = pVgroupMsg->numOfVgroups;
|
||||
if (pInfo->vgroupList->numOfVgroups <= 0) {
|
||||
//tfree(pInfo->vgroupList);
|
||||
tscError("0x%"PRIx64" empty vgroup info", pSql->self);
|
||||
tscDebug("0x%"PRIx64" empty vgroup info, no corresponding tables for stable", pSql->self);
|
||||
} else {
|
||||
for (int32_t j = 0; j < pInfo->vgroupList->numOfVgroups; ++j) {
|
||||
// just init, no need to lock
|
||||
|
|
|
@ -84,13 +84,18 @@ static bool allSubqueryDone(SSqlObj *pParentSql) {
|
|||
//lock in caller
|
||||
tscDebug("0x%"PRIx64" total subqueries: %d", pParentSql->self, subState->numOfSub);
|
||||
for (int i = 0; i < subState->numOfSub; i++) {
|
||||
SSqlObj* pSub = pParentSql->pSubs[i];
|
||||
if (0 == subState->states[i]) {
|
||||
tscDebug("0x%"PRIx64" subquery:0x%"PRIx64", index: %d NOT finished, abort query completion check", pParentSql->self,
|
||||
pParentSql->pSubs[i]->self, i);
|
||||
pSub->self, i);
|
||||
done = false;
|
||||
break;
|
||||
} else {
|
||||
tscDebug("0x%"PRIx64" subquery:0x%"PRIx64", index: %d finished", pParentSql->self, pParentSql->pSubs[i]->self, i);
|
||||
if (pSub != NULL) {
|
||||
tscDebug("0x%"PRIx64" subquery:0x%"PRIx64", index: %d finished", pParentSql->self, pSub->self, i);
|
||||
} else {
|
||||
tscDebug("0x%"PRIx64" subquery:%p, index: %d finished", pParentSql->self, pSub, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue