mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 13:31:27 +08: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 New Issue
Block a user