Code Review: Extend lock scope for appending.

This commit is contained in:
Matt T. Proud 2013-05-22 14:16:13 +02:00
parent f994482d15
commit 2526ab8c81
1 changed files with 2 additions and 0 deletions

View File

@ -172,6 +172,8 @@ func (s *memorySeriesStorage) AppendSample(sample model.Sample) error {
labelNameValues = append(labelNameValues, fingerprint)
s.labelNameToFingerprints[k] = labelNameValues
}
s.Unlock()
}
series.add(sample.Timestamp, sample.Value)