Browse Source

volume.tier.move: avoid repeated move for replicated volumes

fix https://github.com/chrislusf/seaweedfs/issues/1792#issuecomment-784139348
pull/1833/head
Chris Lu 4 years ago
parent
commit
9edd964627
  1. 2
      weed/shell/command_volume_tier_move.go

2
weed/shell/command_volume_tier_move.go

@ -102,7 +102,7 @@ func doVolumeTierMove(commandEnv *CommandEnv, writer io.Writer, collection strin
keepDataNodesSorted(allLocations, toDiskType)
fn := capacityByFreeVolumeCount(toDiskType)
for _, dst := range allLocations {
if fn(dst.dataNode) > 0 {
if fn(dst.dataNode) > 0 && !hasFoundTarget {
// ask the volume server to replicate the volume
if isOneOf(dst.dataNode.Id, locations) {
continue

Loading…
Cancel
Save