aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-26 14:59:03 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-26 14:59:03 -0800
commitb11449f95588beb8373b1f8bc5753fb45d2dc405 (patch)
tree4e06875c93aea9a4dbbf210aadbcd7ad4355e2d8 /weed/server/volume_server.go
parent0d345ac97d941bef0991c0cb08632ccf08c0ee83 (diff)
downloadseaweedfs-b11449f95588beb8373b1f8bc5753fb45d2dc405.tar.xz
seaweedfs-b11449f95588beb8373b1f8bc5753fb45d2dc405.zip
pass in dir.idx parameter to DiskLocation
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index 83df32fdd..468f75890 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -38,6 +38,7 @@ type VolumeServer struct {
func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
port int, publicUrl string,
folders []string, maxCounts []int, minFreeSpacePercents []float32,
+ idxFolder string,
needleMapKind storage.NeedleMapType,
masterNodes []string, pulseSeconds int,
dataCenter string, rack string,
@@ -75,7 +76,7 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
vs.checkWithMaster()
- vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercents, vs.needleMapKind)
+ vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercents, idxFolder, vs.needleMapKind)
vs.guard = security.NewGuard(whiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec)
handleStaticResources(adminMux)