mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Fix condition for dropping empty memory series.
This commit is contained in:
parent
30b1cf80b5
commit
baa5b07829
1 changed files with 2 additions and 5 deletions
|
|
@ -266,12 +266,9 @@ 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.dropSeries(fingerprint)
|
||||
}
|
||||
s.Unlock()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue