shell: volume.tier.move avoid moving all volumes to one destination

This commit is contained in:
Chris Lu
2021-08-08 15:12:39 -07:00
parent de730b079d
commit 26c222f596
2 changed files with 7 additions and 0 deletions

View File

@@ -195,6 +195,8 @@ func (c *commandVolumeFixReplication) fixOneUnderReplicatedVolume(commandEnv *Co
fmt.Fprintf(writer, "replicating volume %d %s from %s to dataNode %s ...\n", replica.info.Id, replicaPlacement, replica.location.dataNode.Id, dst.dataNode.Id)
if !takeAction {
// adjust free volume count
dst.dataNode.DiskInfos[replica.info.DiskType].FreeVolumeCount--
break
}