volume: load configuration from master at the start

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

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)