提交 8d47b4e3 编写于 作者: S shenglian zhou

[TD-12204]<fix>(query):reset sql command during renew table meta when table recreated

上级 52666aa7
...@@ -3124,12 +3124,12 @@ int tscRenewTableMeta(SSqlObj *pSql) { ...@@ -3124,12 +3124,12 @@ int tscRenewTableMeta(SSqlObj *pSql) {
pSql->rootObj->retryReason = pSql->retryReason; pSql->rootObj->retryReason = pSql->retryReason;
SSqlObj *tmpSql = pSql->rootObj; SSqlObj *rootSql = pSql->rootObj;
tscFreeSubobj(pSql->rootObj); tscFreeSubobj(rootSql);
tfree(tmpSql->pSubs); tfree(rootSql->pSubs);
tscResetSqlCmd(&pSql->rootObj->cmd, true,pSql->rootObj->self); tscResetSqlCmd(&rootSql->cmd, true, rootSql->self);
code = getMultiTableMetaFromMnode(tmpSql, pNameList, vgroupList, NULL, tscTableMetaCallBack, true); code = getMultiTableMetaFromMnode(rootSql, pNameList, vgroupList, NULL, tscTableMetaCallBack, true);
taosArrayDestroyEx(&pNameList, freeElem); taosArrayDestroyEx(&pNameList, freeElem);
taosArrayDestroyEx(&vgroupList, freeElem); taosArrayDestroyEx(&vgroupList, freeElem);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册