From 7c52a3594219fa0957e39a32917cffd0ea479f72 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 13 Dec 2020 22:29:52 -0800 Subject: [PATCH] refactor --- weed/command/volume.go | 4 ++-- weed/server/volume_server.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/command/volume.go b/weed/command/volume.go index 3c3699732..02d8eb50c 100644 --- a/weed/command/volume.go +++ b/weed/command/volume.go @@ -219,8 +219,8 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v volumeServer := weed_server.NewVolumeServer(volumeMux, publicVolumeMux, *v.ip, *v.port, *v.publicUrl, - v.folders, v.folderMaxLimits, v.minFreeSpacePercents, - *v.idxFolder, diskType, + v.folders, v.folderMaxLimits, v.minFreeSpacePercents, diskType, + *v.idxFolder, volumeNeedleMapKind, strings.Split(masters, ","), 5, *v.dataCenter, *v.rack, v.whiteList, diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go index 53a4c3548..f88c84184 100644 --- a/weed/server/volume_server.go +++ b/weed/server/volume_server.go @@ -38,8 +38,8 @@ type VolumeServer struct { func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string, port int, publicUrl string, - folders []string, maxCounts []int, minFreeSpacePercents []float32, - idxFolder string, diskType storage.DiskType, + folders []string, maxCounts []int, minFreeSpacePercents []float32, diskType storage.DiskType, + idxFolder string, needleMapKind storage.NeedleMapType, masterNodes []string, pulseSeconds int, dataCenter string, rack string,