From c85c597b972e21a77ec7169793d134b78303d2fb Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Tue, 13 Oct 2020 10:14:51 +0800 Subject: [PATCH] TD-1652 --- src/balance/src/balance.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/balance/src/balance.c b/src/balance/src/balance.c index 0d4da965e2..8701b012ff 100644 --- a/src/balance/src/balance.c +++ b/src/balance/src/balance.c @@ -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 } } -- GitLab