From 89948a373b746442e20b51a90b21744c8e6d215c Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 31 May 2022 12:43:55 -0700 Subject: [PATCH] fix error reporting for "Need to a hdd disk type" related to https://github.com/chrislusf/seaweedfs/issues/3128 --- weed/shell/command_cluster_check.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!") }