mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Update volume server's master node when masters change.
This commit is contained in:
parent
e4f06a7069
commit
0e23ee4dce
|
@ -64,6 +64,7 @@ func NewVolumeServer(publicMux, adminMux *http.ServeMux, ip string,
|
||||||
if err == nil {
|
if err == nil {
|
||||||
if !connected {
|
if !connected {
|
||||||
connected = true
|
connected = true
|
||||||
|
vs.masterNode = master
|
||||||
glog.V(0).Infoln("Volume Server Connected with master at", master)
|
glog.V(0).Infoln("Volume Server Connected with master at", master)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue