diff --git a/storage/metric/memory.go b/storage/metric/memory.go index bbefb03dd..f31e6ddee 100644 --- a/storage/metric/memory.go +++ b/storage/metric/memory.go @@ -234,8 +234,8 @@ func (s *memorySeriesStorage) GetFingerprintsForLabelSet(l model.LabelSet) (fing func (s *memorySeriesStorage) GetFingerprintsForLabelName(l model.LabelName) (model.Fingerprints, error) { s.RLock() + defer s.RUnlock() values, ok := s.labelNameToFingerprints[l] - s.RUnlock() if !ok { return nil, nil }