mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
volume: reset leader if error happens
This commit is contained in:
parent
e85048bcdc
commit
6e116b3d67
|
@ -41,6 +41,7 @@ func (vs *VolumeServer) heartbeat() {
|
|||
if err != nil {
|
||||
glog.V(0).Infof("heartbeat error: %v", err)
|
||||
time.Sleep(time.Duration(vs.pulseSeconds) * time.Second)
|
||||
newLeader = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue