Browse Source

avoid old values when missing read only flags

pull/1560/head
Konstantin Lebedev 4 years ago
parent
commit
2fb1fce8a0
  1. 4
      weed/storage/store.go

4
weed/storage/store.go

@ -222,6 +222,10 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
collectionVolumeSize[v.Collection] += volumeMessage.Size
if v.IsReadOnly() {
collectionVolumeReadOnlyCount[v.Collection] += 1
} else {
if _, exist := collectionVolumeReadOnlyCount[v.Collection]; !exist {
collectionVolumeReadOnlyCount[v.Collection] = 0
}
}
}
location.volumesLock.RUnlock()

Loading…
Cancel
Save