Browse Source

fix max volume count reporting

pull/1255/head
Chris Lu 5 years ago
parent
commit
c16dc57a58
  1. 2
      weed/server/master_grpc_server.go

2
weed/server/master_grpc_server.go

@ -81,7 +81,7 @@ func (ms *MasterServer) SendHeartbeat(stream master_pb.Seaweed_SendHeartbeatServ
}
}
if dn.GetMaxVolumeCount() != int64(heartbeat.MaxVolumeCount) {
if heartbeat.MaxVolumeCount != 0 && dn.GetMaxVolumeCount() != int64(heartbeat.MaxVolumeCount) {
delta := int64(heartbeat.MaxVolumeCount) - dn.GetMaxVolumeCount()
dn.UpAdjustMaxVolumeCountDelta(delta)
}

Loading…
Cancel
Save