mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Merge pull request #2638 from prometheus/beorn7/storage
storage: Don't panic if storage has no FPs even after initial wait
This commit is contained in:
commit
872ed88166
|
@ -1341,7 +1341,7 @@ func (s *MemorySeriesStorage) cycleThroughMemoryFingerprints() chan model.Finger
|
|||
}
|
||||
begin := time.Now()
|
||||
fps := s.fpToSeries.sortedFPs()
|
||||
if firstPass {
|
||||
if firstPass && len(fps) > 0 {
|
||||
// Start first pass at a random location in the
|
||||
// key space to cover the whole key space even
|
||||
// in the case of frequent restarts.
|
||||
|
|
Loading…
Reference in a new issue