提交 96f05e8e 编写于 作者: 5 54liuyao

fix:in some cases, metadata may be received twice

上级 ad303d5e
......@@ -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);
if(t == NULL) {
taosHashPut(pParentCmd->pTableMetaMap, pMetaMsg->tableFname, keyLen, &p, sizeof(STableMetaVgroupInfo));
}
} else {
freeMeta = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册