Browse Source

prevent nil volume message

pull/1905/head
Chris Lu 4 years ago
parent
commit
cb423312a4
  1. 3
      weed/storage/store.go

3
weed/storage/store.go

@ -217,6 +217,9 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
location.volumesLock.RLock()
for _, v := range location.volumes {
curMaxFileKey, volumeMessage := v.ToVolumeInformationMessage()
if volumeMessage == nil {
continue
}
if maxFileKey < curMaxFileKey {
maxFileKey = curMaxFileKey
}

Loading…
Cancel
Save