famosss
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
92 additions and
90 deletions
-
weed/server/master_grpc_server.go
|
|
@ -104,6 +104,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
if ms.Topo.IsLeader() { |
|
|
|
ms.Topo.Sequence.SetMax(heartbeat.MaxFileKey) |
|
|
|
|
|
|
|
if dn == nil { |
|
|
@ -216,6 +217,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ |
|
|
|
if len(message.NewVids) > 0 || len(message.DeletedVids) > 0 || len(message.NewEcVids) > 0 || len(message.DeletedEcVids) > 0 { |
|
|
|
ms.broadcastToClients(&master_pb.KeepConnectedResponse{VolumeLocation: message}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// tell the volume servers about the leader
|
|
|
|
newLeader, err := ms.Topo.Leader() |
|
|
|