From 819a9546136bdb1401830c5d6d8f47d8a741a851 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 8 Sep 2021 21:43:00 +0800 Subject: [PATCH] [TD-6127] one taos driver connect two cluster --- src/client/src/tscUtil.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 5f254bdcf5..365ee9ab25 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4561,9 +4561,8 @@ int32_t tscCreateTableMetaFromSTableMeta(SSqlObj *pSql, STableMeta** ppChild, co if (NULL == taosHashGetCloneExt(UTIL_GET_TABLEMETA(pSql), pChild->sTableName, strnlen(pChild->sTableName, TSDB_TABLE_FNAME_LEN), NULL, (void **)&p, &sz)) { tfree(p); - } else { - *ppSTable = p; - } + } + *ppSTable = p; // tableMeta exists, build child table meta according to the super table meta // the uid need to be checked in addition to the general name of the super table. -- GitLab