mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 18:33:38 +08:00
Merge pull request #869 from PapaYofen/fix-825
Fix https://github.com/chrislusf/seaweedfs/issues/825#issuecomment-46…
This commit is contained in:
@@ -102,7 +102,9 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
|
|||||||
|
|
||||||
// tell the volume servers about the leader
|
// tell the volume servers about the leader
|
||||||
newLeader, err := t.Leader()
|
newLeader, err := t.Leader()
|
||||||
if err == nil {
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := stream.Send(&master_pb.HeartbeatResponse{
|
if err := stream.Send(&master_pb.HeartbeatResponse{
|
||||||
Leader: newLeader,
|
Leader: newLeader,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
@@ -110,7 +112,6 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// KeepConnected keep a stream gRPC call to the master. Used by clients to know the master is up.
|
// KeepConnected keep a stream gRPC call to the master. Used by clients to know the master is up.
|
||||||
// And clients gets the up-to-date list of volume locations
|
// And clients gets the up-to-date list of volume locations
|
||||||
|
Reference in New Issue
Block a user