Browse Source

Merge pull request #869 from PapaYofen/fix-825

Fix https://github.com/chrislusf/seaweedfs/issues/825#issuecomment-46
pull/878/head
Chris Lu 6 years ago
committed by GitHub
parent
commit
b13260fd45
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      weed/server/master_grpc_server.go

13
weed/server/master_grpc_server.go

@ -102,12 +102,13 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
// tell the volume servers about the leader
newLeader, err := t.Leader()
if err == nil {
if err := stream.Send(&master_pb.HeartbeatResponse{
Leader: newLeader,
}); err != nil {
return err
}
if err != nil {
return err
}
if err := stream.Send(&master_pb.HeartbeatResponse{
Leader: newLeader,
}); err != nil {
return err
}
}
}

Loading…
Cancel
Save