diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-23 03:49:14 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-23 03:49:14 -0800 |
| commit | 9edd964627a1d0eb6549ab4eaab8e0191551c70a (patch) | |
| tree | fff3ededa366e6ba8fc0982ec2c497ead69d2b20 /weed/shell/command_volume_tier_move.go | |
| parent | 37f104f88f89225ff8a1bf785cdca833db45de7a (diff) | |
| download | seaweedfs-9edd964627a1d0eb6549ab4eaab8e0191551c70a.tar.xz seaweedfs-9edd964627a1d0eb6549ab4eaab8e0191551c70a.zip | |
volume.tier.move: avoid repeated move for replicated volumes
fix https://github.com/chrislusf/seaweedfs/issues/1792#issuecomment-784139348
Diffstat (limited to 'weed/shell/command_volume_tier_move.go')
| -rw-r--r-- | weed/shell/command_volume_tier_move.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_tier_move.go b/weed/shell/command_volume_tier_move.go index a15efd6b3..f7fa94031 100644 --- a/weed/shell/command_volume_tier_move.go +++ b/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 |
