volume: load configuration from master at the start

fix https://github.com/chrislusf/seaweedfs/issues/1469
This commit is contained in:
Chris Lu committed 2020-09-16 01:27:05 -07:00
1 parent c9202c4b3d
commit 913a16268d
2 files changed
+25

No files matched your search

+3
View File
@@ -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)