aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/node.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/node.go
parentf8446b42abd7f3c6c0a298dbbb8641e466891561 (diff)
downloadseaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.tar.xz
seaweedfs-3fe628f04e2aa3ac550c670c27d00fcc3fc2e12b.zip
use hdd instead of empty string
Diffstat (limited to 'weed/topology/node.go')
-rw-r--r--weed/topology/node.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/node.go b/weed/topology/node.go
index 5275af64a..1f5e4194c 100644
--- a/weed/topology/node.go
+++ b/weed/topology/node.go
@@ -193,7 +193,7 @@ func (n *NodeImpl) AdjustMaxVolumeCounts(maxVolumeCounts map[string]uint32) {
// the volume server may have set the max to zero
continue
}
- dt := types.DiskType(diskType)
+ dt := types.ToDiskType(diskType)
deltaDiskUsage := deltaDiskUsages.getOrCreateDisk(dt)
currentDiskUsage := n.diskUsages.getOrCreateDisk(dt)
deltaDiskUsage.maxVolumeCount = int64(maxVolumeCount) - currentDiskUsage.maxVolumeCount