mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-04 14:12:14 -04:00
Code Review: Extend lock.
This commit is contained in:
parent
2526ab8c81
commit
285a8b701b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue