提交 c294b0d2 编写于 作者: X xywang

fix: super table info not removed after dropped by another client

上级 9d33d99c
...@@ -366,7 +366,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { ...@@ -366,7 +366,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) {
tscAllocPayload(&pSql->cmd, (int)sz + 1); tscAllocPayload(&pSql->cmd, (int)sz + 1);
memcpy(tscGetErrorMsgPayload(&pSql->cmd), tscGetErrorMsgPayload(&sub->cmd), sz); memcpy(tscGetErrorMsgPayload(&pSql->cmd), tscGetErrorMsgPayload(&sub->cmd), sz);
} else if (code == TSDB_CODE_MND_INVALID_TABLE_NAME) { } else if (code == TSDB_CODE_MND_INVALID_TABLE_NAME) {
if (pSql->cmd.command == TSDB_SQL_MULTI_META && pSql->cmd.hashedTableNames) { if (sub->cmd.command == TSDB_SQL_MULTI_META && pSql->cmd.hashedTableNames) {
tscClearTableMeta(pSql); tscClearTableMeta(pSql);
taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem);
pSql->cmd.hashedTableNames = NULL; pSql->cmd.hashedTableNames = NULL;
...@@ -375,7 +375,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { ...@@ -375,7 +375,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) {
goto _error; goto _error;
} }
if (pSql->cmd.command == TSDB_SQL_MULTI_META) { if (sub->cmd.command == TSDB_SQL_MULTI_META) {
if (pSql->cmd.hashedTableNames) { if (pSql->cmd.hashedTableNames) {
taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem);
pSql->cmd.hashedTableNames = NULL; pSql->cmd.hashedTableNames = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册