mirror of https://github.com/prometheus/prometheus
Merge pull request #213 from prometheus/fix/goroutine-leak-in-append-samples
Fix goroutine leak in leveldb.AppendSamplespull/215/head
commit
59e5ddeed3
|
@ -538,8 +538,8 @@ func (l *LevelDBMetricPersistence) AppendSamples(samples model.Samples) (err err
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fingerprintToSamples = groupByFingerprint(samples)
|
fingerprintToSamples = groupByFingerprint(samples)
|
||||||
indexErrChan = make(chan error)
|
indexErrChan = make(chan error, 1)
|
||||||
watermarkErrChan = make(chan error)
|
watermarkErrChan = make(chan error, 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
go func(groups map[model.Fingerprint]model.Samples) {
|
go func(groups map[model.Fingerprint]model.Samples) {
|
||||||
|
|
Loading…
Reference in New Issue