Browse Source

volume: reset leader if error happens

pull/931/head
Chris Lu 6 years ago
parent
commit
6e116b3d67
  1. 1
      weed/server/volume_grpc_client_to_master.go

1
weed/server/volume_grpc_client_to_master.go

@ -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…
Cancel
Save