Code Review: Extend lock.

This commit is contained in:
Matt T. Proud 2013-05-22 14:23:35 +02:00
parent 2526ab8c81
commit 285a8b701b
1 changed files with 1 additions and 1 deletions

View File

@ -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
}