fix: reserve enough space of show Obj rows for vnodes of each vgroup in mndRetrieveVnodes

This commit is contained in:
Benguang Zhao 2023-08-29 12:07:45 +08:00
parent 62cc4c46a3
commit 5e5b7a3328
1 changed files with 1 additions and 1 deletions

View File

@ -1091,7 +1091,7 @@ static int32_t mndRetrieveVnodes(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pB
int32_t cols = 0;
int64_t curMs = taosGetTimestampMs();
while (numOfRows < rows) {
while (numOfRows < rows - TSDB_MAX_REPLICA) {
pShow->pIter = sdbFetch(pSdb, SDB_VGROUP, pShow->pIter, (void **)&pVgroup);
if (pShow->pIter == NULL) break;