aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_cluster_check.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-05-31 12:43:55 -0700
committerchrislu <chris.lu@gmail.com>2022-05-31 12:43:55 -0700
commit89948a373b746442e20b51a90b21744c8e6d215c (patch)
treea527601e7f844fd21b9a6152d45dd2c5a56fc17a /weed/shell/command_cluster_check.go
parent8a49240d64f5e53f119e58b923c3a6b25e85b37b (diff)
downloadseaweedfs-89948a373b746442e20b51a90b21744c8e6d215c.tar.xz
seaweedfs-89948a373b746442e20b51a90b21744c8e6d215c.zip
fix error reporting for "Need to a hdd disk type"
related to https://github.com/chrislusf/seaweedfs/issues/3128
Diffstat (limited to 'weed/shell/command_cluster_check.go')
-rw-r--r--weed/shell/command_cluster_check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_cluster_check.go b/weed/shell/command_cluster_check.go
index 2ab82fca2..e363239e7 100644
--- a/weed/shell/command_cluster_check.go
+++ b/weed/shell/command_cluster_check.go
@@ -50,7 +50,7 @@ func (c *commandClusterCheck) Do(args []string, commandEnv *CommandEnv, writer i
if !emptyDiskTypeFound && !hddDiskTypeFound {
return fmt.Errorf("Need to a hdd disk type!")
}
- if emptyDiskTypeFound && emptyDiskTypeDiskInfo.VolumeCount == 0 || hddDiskTypeFound && hddDiskTypeDiskInfo.VolumeCount == 0 {
+ if emptyDiskTypeFound && emptyDiskTypeDiskInfo.MaxVolumeCount == 0 || hddDiskTypeFound && hddDiskTypeDiskInfo.MaxVolumeCount == 0 {
return fmt.Errorf("Need to a hdd disk type!")
}