Merge pull request #6498 from taosdata/fix/TD-4682
[TD-4682]<fix>: not move vnode to new dnode within 2 seconds
This commit is contained in:
commit
ef16f14aa2
|
@ -367,6 +367,7 @@ static bool bnMonitorBalance() {
|
|||
for (int32_t dest = 0; dest < src; dest++) {
|
||||
SDnodeObj *pDestDnode = tsBnDnodes.list[dest];
|
||||
if (bnCheckDnodeInVgroup(pDestDnode, pVgroup)) continue;
|
||||
if (taosGetTimestampMs() - pDestDnode->createdTime < 2000) continue;
|
||||
|
||||
float destScore = bnTryCalcDnodeScore(pDestDnode, 1);
|
||||
if (srcScore + 0.0001 < destScore) continue;
|
||||
|
|
Loading…
Reference in New Issue