diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-16 10:50:42 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-16 10:50:42 -0800 |
| commit | 7403cd43c5e6fa7a7b32dba817bdf99c1f27b2eb (patch) | |
| tree | 76c36fb46b48f8e863159129a84a61540ef223ed | |
| parent | b314d78e97af3e3aeca4f31ac714f7cd23ae9cec (diff) | |
| download | seaweedfs-7403cd43c5e6fa7a7b32dba817bdf99c1f27b2eb.tar.xz seaweedfs-7403cd43c5e6fa7a7b32dba817bdf99c1f27b2eb.zip | |
only use "" for hdd to avoid two values for the same thing
| -rw-r--r-- | weed/storage/types/volume_disk_type.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/storage/types/volume_disk_type.go b/weed/storage/types/volume_disk_type.go index d49891a63..0e199a626 100644 --- a/weed/storage/types/volume_disk_type.go +++ b/weed/storage/types/volume_disk_type.go @@ -7,7 +7,7 @@ import ( type DiskType string const ( - HardDriveType DiskType = "hdd" + HardDriveType DiskType = "" SsdType = "ssd" ) @@ -27,7 +27,7 @@ func ToDiskType(vt string) (diskType DiskType) { func (diskType DiskType) String() string{ if diskType == "" { - return "hdd" + return "" } return string(diskType) } |
