diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 70fd60f1c9d744c7f2ea30db9b6eac49d53f6d7c..203538fbf41ed917f8dba15eeaa34c30fbe2ada8 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -2594,9 +2594,9 @@ int tscProcessMultiTableMetaRsp(SSqlObj *pSql) { STableMetaVgroupInfo p = {.pTableMeta = pTableMeta,}; size_t keyLen = strnlen(pMetaMsg->tableFname, TSDB_TABLE_FNAME_LEN); void* t = taosHashGet(pParentCmd->pTableMetaMap, pMetaMsg->tableFname, keyLen); - assert(t == NULL); - - taosHashPut(pParentCmd->pTableMetaMap, pMetaMsg->tableFname, keyLen, &p, sizeof(STableMetaVgroupInfo)); + if(t == NULL) { + taosHashPut(pParentCmd->pTableMetaMap, pMetaMsg->tableFname, keyLen, &p, sizeof(STableMetaVgroupInfo)); + } } else { freeMeta = true; }