mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
Code Review: Extend lock scope for appending.
This commit is contained in:
parent
f994482d15
commit
2526ab8c81
|
@ -172,6 +172,8 @@ func (s *memorySeriesStorage) AppendSample(sample model.Sample) error {
|
||||||
labelNameValues = append(labelNameValues, fingerprint)
|
labelNameValues = append(labelNameValues, fingerprint)
|
||||||
s.labelNameToFingerprints[k] = labelNameValues
|
s.labelNameToFingerprints[k] = labelNameValues
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
series.add(sample.Timestamp, sample.Value)
|
series.add(sample.Timestamp, sample.Value)
|
||||||
|
|
Loading…
Reference in a new issue