Browse Source

Code Review: Extend lock scope for appending.

pull/265/head
Matt T. Proud 12 years ago
parent
commit
2526ab8c81
  1. 2
      storage/metric/memory.go

2
storage/metric/memory.go

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

Loading…
Cancel
Save