From 013d6f840dc09600aa7510dc459c2eaef5eff012 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 26 May 2021 17:55:59 +0800 Subject: [PATCH] [td-225] --- src/mnode/src/mnodeTable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mnode/src/mnodeTable.c b/src/mnode/src/mnodeTable.c index e1cae0d054..11178a143e 100644 --- a/src/mnode/src/mnodeTable.c +++ b/src/mnode/src/mnodeTable.c @@ -2854,6 +2854,7 @@ static int32_t mnodeProcessMultiTableMetaMsg(SMnodeMsg *pMsg) { int32_t code = TSDB_CODE_SUCCESS; char* str = strndup(pInfo->tableNames, contLen); char** nameList = strsplit(str, ",", &num); + SArray* pList = taosArrayInit(4, POINTER_BYTES); SMultiTableMeta *pMultiMeta = NULL; if (num != pInfo->numOfTables + pInfo->numOfVgroups) { @@ -2873,8 +2874,6 @@ static int32_t mnodeProcessMultiTableMetaMsg(SMnodeMsg *pMsg) { pMultiMeta->contLen = sizeof(SMultiTableMeta); pMultiMeta->numOfTables = 0; - SArray* pList = taosArrayInit(4, POINTER_BYTES); - int32_t t = 0; for (; t < pInfo->numOfTables; ++t) { char *fullName = nameList[t]; -- GitLab