volume: reset leader if error happens
This commit is contained in:
@@ -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