mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-29 08:20:42 +01:00
volume: reset leader if error happens
This commit is contained in:
1 parent
e85048bcdc
commit
6e116b3d67
1 file changed
+1
@@ -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 = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user