aboutsummaryrefslogtreecommitdiff
path: root/weed/server/volume_server.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-09-16 01:27:05 -0700
committerChris Lu <chris.lu@gmail.com>2020-09-16 01:27:05 -0700
commit913a16268d595f591dd46bf5fb43a09514b30f7d (patch)
treeab6e34b11576ed9da2fd23f75e512c067c7522fa /weed/server/volume_server.go
parentc9202c4b3d5db57a8ab1ee8c87de2f8a01973261 (diff)
downloadseaweedfs-913a16268d595f591dd46bf5fb43a09514b30f7d.tar.xz
seaweedfs-913a16268d595f591dd46bf5fb43a09514b30f7d.zip
volume: load configuration from master at the start
fix https://github.com/chrislusf/seaweedfs/issues/1469
Diffstat (limited to 'weed/server/volume_server.go')
-rw-r--r--weed/server/volume_server.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/server/volume_server.go b/weed/server/volume_server.go
index e9d815579..787cedc65 100644
--- a/weed/server/volume_server.go
+++ b/weed/server/volume_server.go
@@ -72,6 +72,9 @@ func NewVolumeServer(adminMux, publicMux *http.ServeMux, ip string,
stopChan: make(chan bool),
}
vs.SeedMasterNodes = masterNodes
+
+ vs.checkWithMaster()
+
vs.store = storage.NewStore(vs.grpcDialOption, port, ip, publicUrl, folders, maxCounts, minFreeSpacePercents, vs.needleMapKind)
vs.guard = security.NewGuard(whiteList, signingKey, expiresAfterSec, readSigningKey, readExpiresAfterSec)