This commit is contained in:
Shengliang Guan 2020-10-13 10:14:51 +08:00
parent b604ed1370
commit c85c597b97
1 changed files with 6 additions and 1 deletions

View File

@ -959,9 +959,14 @@ static void balanceMonitorDnodeModule() {
mLInfo("dnode:%d, numOfMnodes:%d expect:%d, create mnode in this dnode", pDnode->dnodeId, numOfMnodes, tsNumOfMnodes);
mnodeCreateMnode(pDnode->dnodeId, pDnode->dnodeEp, true);
#if 0
// Only create one mnode each time
return;
#else
numOfMnodes = mnodeGetMnodesNum();
if (numOfMnodes >= tsNumOfMnodes) return;
#endif
}
}