From baa5b07829375e7bae88ec8491fede81be338324 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Tue, 25 Jun 2013 17:57:35 +0200 Subject: [PATCH] Fix condition for dropping empty memory series. --- storage/metric/memory.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/storage/metric/memory.go b/storage/metric/memory.go index 7878a15ed..913de569f 100644 --- a/storage/metric/memory.go +++ b/storage/metric/memory.go @@ -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() }