提交 1b0e7c70 编写于 作者: H Haojun Liao

[td-225] refactor.

上级 240e28ae
......@@ -2533,7 +2533,8 @@ int32_t tscGetTableMeta(SSqlObj *pSql, STableMetaInfo *pTableMetaInfo) {
if (pTableMetaInfo->pTableMeta == NULL) {
pTableMetaInfo->pTableMeta = calloc(1, size);
} else {
memset(pTableMetaInfo->pTableMeta, 0, size);
uint32_t s = tscGetTableMetaSize(pTableMetaInfo->pTableMeta);
memset(pTableMetaInfo->pTableMeta, 0, s);
}
pTableMetaInfo->pTableMeta->tableType = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册