aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/rack.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/topology/rack.go
parentf8446b42abd7f3c6c0a298dbbb8641e466891561 (diff)
downloadseaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.tar.xz
seaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.zip
use hdd instead of empty string
Diffstat (limited to 'weed/topology/rack.go')
-rw-r--r--weed/topology/rack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/rack.go b/weed/topology/rack.go
index e75318ffe..95fd260ad 100644
--- a/weed/topology/rack.go
+++ b/weed/topology/rack.go
@@ -46,7 +46,7 @@ func (r *Rack) GetOrCreateDataNode(ip string, port int, publicUrl string, maxVol
r.LinkChildNode(dn)
for diskType, maxVolumeCount := range maxVolumeCounts {
disk := NewDisk(diskType)
- disk.diskUsages.getOrCreateDisk(types.DiskType(diskType)).maxVolumeCount = int64(maxVolumeCount)
+ disk.diskUsages.getOrCreateDisk(types.ToDiskType(diskType)).maxVolumeCount = int64(maxVolumeCount)
dn.LinkChildNode(disk)
}
return dn