Merge pull request #998 from taosdata/master
merge from master to develop
This commit is contained in:
commit
4f5147de51
|
@ -434,10 +434,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);
|
||||||
|
|
Loading…
Reference in New Issue