Browse Source

fix: volume heartbeat processing error (#3616)

pull/3523/merge
famosss 2 years ago
committed by GitHub
parent
commit
9678fc2106
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/server/master_grpc_server.go

2
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()

Loading…
Cancel
Save