diff --git a/src/mnode/src/mgmtBalance.c b/src/mnode/src/mgmtBalance.c index c6c10e0da00e426b9123b31040d8450e59d0d9bc..17d4a4114b6404670c320e2a3d1533754bdfa299 100644 --- a/src/mnode/src/mgmtBalance.c +++ b/src/mnode/src/mgmtBalance.c @@ -35,7 +35,7 @@ int32_t balanceAllocVnodes(SVgObj *pVgroup) { void * pNode = NULL; SDnodeObj *pDnode = NULL; SDnodeObj *pSelDnode = NULL; - float vnodeUsage = 1.0; + float vnodeUsage = 1000.0; while (1) { pNode = mgmtGetNextDnode(pNode, &pDnode); diff --git a/src/mnode/src/mgmtTable.c b/src/mnode/src/mgmtTable.c index e09230e51d074cf8da688fdf1aa1aef6786157de..7bf93872587009ef3f2f8785e7701a433bb190a9 100644 --- a/src/mnode/src/mgmtTable.c +++ b/src/mnode/src/mgmtTable.c @@ -1431,8 +1431,8 @@ static void mgmtProcessCreateChildTableMsg(SQueuedMsg *pMsg) { } int32_t sid = taosAllocateId(pVgroup->idPool); - if (sid < 0) { - mTrace("tables:%s, no enough sid in vgroup:%d", pVgroup->vgId); + if (sid <= 0) { + mTrace("tables:%s, no enough sid in vgroup:%d", pCreate->tableId, pVgroup->vgId); mgmtCreateVgroup(mgmtCloneQueuedMsg(pMsg), pMsg->pDb); return; }