提交 0912aa64 编写于 作者: A Alex Duan

feat(mnode): cluster status fixed some bugs

上级 f1391553
......@@ -844,6 +844,9 @@ static int32_t mnodeRetrieveStatus(SShowObj *pShow, char *data, int32_t rows, vo
nAvailble++;
else
nUnAvailble++;
// releae pVgroup ref
mnodeDecVgroupRef(pVgroup);
}
// set col data
......
......@@ -72,7 +72,7 @@ SSchema* tscGetColumnSchemaById(STableMeta* pTableMeta, int16_t colId) {
}
STableMeta* tscCreateTableMetaFromMsg(STableMetaMsg* pTableMetaMsg) {
//assert(pTableMetaMsg != NULL && pTableMetaMsg->numOfColumns >= 2);
assert(pTableMetaMsg != NULL && pTableMetaMsg->numOfColumns >= 1);
int32_t schemaSize = (pTableMetaMsg->numOfColumns + pTableMetaMsg->numOfTags) * sizeof(SSchema);
STableMeta* pTableMeta = calloc(1, sizeof(STableMeta) + schemaSize);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册