This commit is contained in:
wpan 2021-08-17 10:23:56 +08:00
parent 44be3ee34d
commit 6adcba9dd7
2 changed files with 10 additions and 10 deletions

View File

@ -2729,17 +2729,17 @@ void tscHandleSubqueryError(SRetrieveSupport *trsupport, SSqlObj *pSql, int numO
pParentCmd->pTableMetaMap = tscCleanupTableMetaMap(pParentCmd->pTableMetaMap); pParentCmd->pTableMetaMap = tscCleanupTableMetaMap(pParentCmd->pTableMetaMap);
pParentCmd->pTableMetaMap = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_NO_LOCK); pParentCmd->pTableMetaMap = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_NO_LOCK);
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
doCleanupSubqueries(userSql, userSql->subState.numOfSub);
userSql->subState.numOfSub = 0;
pParentSql->res.code = TSDB_CODE_SUCCESS; pParentSql->res.code = TSDB_CODE_SUCCESS;
pParentSql->retry++; pParentSql->retry++;
tscDebug("0x%"PRIx64" retry parse sql and send query, prev error: %s, retry:%d", pParentSql->self, tscDebug("0x%"PRIx64" retry parse sql and send query, prev error: %s, retry:%d", pParentSql->self,
tstrerror(code), pParentSql->retry); tstrerror(code), pParentSql->retry);
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
doCleanupSubqueries(userSql, userSql->subState.numOfSub);
userSql->subState.numOfSub = 0;
code = tsParseSql(userSql, true); code = tsParseSql(userSql, true);
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) { if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
return; return;

View File

@ -3765,17 +3765,17 @@ static void tscSubqueryCompleteCallback(void* param, TAOS_RES* tres, int code) {
pParentCmd->pTableMetaMap = tscCleanupTableMetaMap(pParentCmd->pTableMetaMap); pParentCmd->pTableMetaMap = tscCleanupTableMetaMap(pParentCmd->pTableMetaMap);
pParentCmd->pTableMetaMap = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_NO_LOCK); pParentCmd->pTableMetaMap = taosHashInit(4, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_NO_LOCK);
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
doCleanupSubqueries(userSql, userSql->subState.numOfSub);
userSql->subState.numOfSub = 0;
pParentSql->res.code = TSDB_CODE_SUCCESS; pParentSql->res.code = TSDB_CODE_SUCCESS;
pParentSql->retry++; pParentSql->retry++;
tscDebug("0x%"PRIx64" retry parse sql and send query, prev error: %s, retry:%d", pParentSql->self, tscDebug("0x%"PRIx64" retry parse sql and send query, prev error: %s, retry:%d", pParentSql->self,
tstrerror(code), pParentSql->retry); tstrerror(code), pParentSql->retry);
SSqlObj *userSql = ((SRetrieveSupport*)pParentSql->param)->pParentSql;
doCleanupSubqueries(userSql, userSql->subState.numOfSub);
userSql->subState.numOfSub = 0;
code = tsParseSql(userSql, true); code = tsParseSql(userSql, true);
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) { if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
return; return;