Code Review: Extend lock.

This commit is contained in:
Matt T. Proud 2013-05-22 14:23:35 +02:00
parent 2526ab8c81
commit 285a8b701b

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
}