diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-16 03:03:00 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-16 03:03:00 -0800 |
| commit | 3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b (patch) | |
| tree | 98c2c6e2355c237dcc1e383673f83a555f13ab27 /weed/shell/command_volume_server_evacuate.go | |
| parent | f8446b42abd7f3c6c0a298dbbb8641e466891561 (diff) | |
| download | seaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.tar.xz seaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.zip | |
use hdd instead of empty string
Diffstat (limited to 'weed/shell/command_volume_server_evacuate.go')
| -rw-r--r-- | weed/shell/command_volume_server_evacuate.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_server_evacuate.go b/weed/shell/command_volume_server_evacuate.go index b7e06c891..65bf578a0 100644 --- a/weed/shell/command_volume_server_evacuate.go +++ b/weed/shell/command_volume_server_evacuate.go @@ -180,7 +180,7 @@ func moveAwayOneEcVolume(commandEnv *CommandEnv, ecShardInfo *master_pb.VolumeEc func moveAwayOneNormalVolume(commandEnv *CommandEnv, volumeReplicas map[uint32][]*VolumeReplica, vol *master_pb.VolumeInformationMessage, thisNode *Node, otherNodes []*Node, applyChange bool) (hasMoved bool, err error) { sort.Slice(otherNodes, func(i, j int) bool { - return otherNodes[i].localVolumeRatio(capacityByMaxVolumeCount(types.DiskType(vol.DiskType))) < otherNodes[j].localVolumeRatio(capacityByMaxVolumeCount(types.DiskType(vol.DiskType))) + return otherNodes[i].localVolumeRatio(capacityByMaxVolumeCount(types.ToDiskType(vol.DiskType))) < otherNodes[j].localVolumeRatio(capacityByMaxVolumeCount(types.ToDiskType(vol.DiskType))) }) for i := 0; i < len(otherNodes); i++ { |
