aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-16 02:47:02 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-16 02:47:02 -0800
commitf8446b42abd7f3c6c0a298dbbb8641e466891561 (patch)
tree84005ad6433f8f1d734624eba1e3c9166208f50f /weed/command/volume.go
parent71f0c195157b79223a3c8e35a57da10b7ff0720d (diff)
downloadseaweedfs-f8446b42abd7f3c6c0a298dbbb8641e466891561.tar.xz
seaweedfs-f8446b42abd7f3c6c0a298dbbb8641e466891561.zip
this can compile now!!!
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index a85f9b6be..ff951afdc 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -2,6 +2,7 @@ package command
import (
"fmt"
+ "github.com/chrislusf/seaweedfs/weed/storage/types"
"net/http"
httppprof "net/http/pprof"
"os"
@@ -170,10 +171,10 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
}
// set disk types
- var diskTypes []storage.DiskType
+ var diskTypes []types.DiskType
diskTypeStrings := strings.Split(*v.diskType, ",")
for _, diskTypeString := range diskTypeStrings {
- diskTypes = append(diskTypes, storage.ToDiskType(diskTypeString))
+ diskTypes = append(diskTypes, types.ToDiskType(diskTypeString))
}
if len(diskTypes) == 1 && len(v.folders) > 1 {
for i := 0; i < len(v.folders)-1; i++ {