mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 17:13:22 +00:00
Fix condition for dropping empty memory series.
This commit is contained in:
parent
30b1cf80b5
commit
baa5b07829
@ -266,13 +266,10 @@ func (s *memorySeriesStorage) Flush(flushOlderThan time.Time, queue chan<- clien
|
||||
|
||||
s.Lock()
|
||||
for _, fingerprint := range emptySeries {
|
||||
series, _ := s.fingerprintToSeries[*fingerprint]
|
||||
if series.empty() {
|
||||
continue
|
||||
}
|
||||
|
||||
if s.fingerprintToSeries[*fingerprint].empty() {
|
||||
s.dropSeries(fingerprint)
|
||||
}
|
||||
}
|
||||
s.Unlock()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user