提交 29166b24 编写于 作者: S slguan

[TBASE-1387] #992

上级 bba2bbf1
...@@ -435,10 +435,17 @@ int mgmtGetVnodeMeta(SMeterMeta *pMeta, SShowObj *pShow, SConnObj *pConn) { ...@@ -435,10 +435,17 @@ int mgmtGetVnodeMeta(SMeterMeta *pMeta, SShowObj *pShow, SConnObj *pConn) {
if (NULL == pDnode) { if (NULL == pDnode) {
return TSDB_CODE_NODE_OFFLINE; return TSDB_CODE_NODE_OFFLINE;
} }
SVnodeLoad* pVnode;
pShow->numOfRows = 0;
for (int i = 0 ; i < TSDB_MAX_VNODES; i++) {
pVnode = &pDnode->vload[i];
if (0 != pVnode->vgId) {
pShow->numOfRows++;
}
}
pShow->numOfRows = pDnode->openVnodes; pShow->pNode = pDnode;
pShow->pNode = pDnode;
} else { } else {
while (true) { while (true) {
pShow->pNode = mgmtGetNextDnode(pShow, (SDnodeObj **)&pDnode); pShow->pNode = mgmtGetNextDnode(pShow, (SDnodeObj **)&pDnode);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册