aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_server_evacuate.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-16 03:03:00 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-16 03:03:00 -0800
commit3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b (patch)
tree98c2c6e2355c237dcc1e383673f83a555f13ab27 /weed/shell/command_volume_server_evacuate.go
parentf8446b42abd7f3c6c0a298dbbb8641e466891561 (diff)
downloadseaweedfs-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.go2
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++ {