Deal with missing series in preloading.

Change-Id: Ibf3a57b329f40a3d5e0b98464a2f45d2f1bd07bf
This commit is contained in:
Julius Volz 2014-10-13 18:55:46 +02:00 committed by Bjoern Rabenstein
parent ca42a22e20
commit bfa64248b7

View file

@ -171,6 +171,8 @@ func (s *memorySeriesStorage) preloadChunksForRange(fp clientmodel.Fingerprint,
return nil, err return nil, err
} }
series = s.getOrCreateSeries(fp, metric) series = s.getOrCreateSeries(fp, metric)
} else {
return nil, nil
} }
} }
return series.preloadChunksForRange(from, through, s.persistence) return series.preloadChunksForRange(from, through, s.persistence)