From c294b0d2152faade84de0a4534c57202a1c48cf4 Mon Sep 17 00:00:00 2001 From: xywang Date: Fri, 10 Jun 2022 00:06:51 +0800 Subject: [PATCH] fix: super table info not removed after dropped by another client --- src/client/src/tscAsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscAsync.c b/src/client/src/tscAsync.c index 2570f473ed..df1b98478c 100644 --- a/src/client/src/tscAsync.c +++ b/src/client/src/tscAsync.c @@ -366,7 +366,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { tscAllocPayload(&pSql->cmd, (int)sz + 1); memcpy(tscGetErrorMsgPayload(&pSql->cmd), tscGetErrorMsgPayload(&sub->cmd), sz); } 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); taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); pSql->cmd.hashedTableNames = NULL; @@ -375,7 +375,7 @@ void tscTableMetaCallBack(void *param, TAOS_RES *res, int code) { goto _error; } - if (pSql->cmd.command == TSDB_SQL_MULTI_META) { + if (sub->cmd.command == TSDB_SQL_MULTI_META) { if (pSql->cmd.hashedTableNames) { taosArrayDestroyEx(&pSql->cmd.hashedTableNames, freeElem); pSql->cmd.hashedTableNames = NULL; -- GitLab