From f3365c4f269da988aa703d8580ee339f96e52a33 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Thu, 6 Apr 2017 15:29:33 +0200 Subject: [PATCH] storage: Mark storage as dirty if indexing fails --- storage/local/persistence.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/local/persistence.go b/storage/local/persistence.go index b186c08cf..92c61685a 100644 --- a/storage/local/persistence.go +++ b/storage/local/persistence.go @@ -1381,9 +1381,11 @@ func (p *persistence) processIndexingQueue() { if err := p.labelPairToFingerprints.IndexBatch(pairToFPs); err != nil { log.Error("Error indexing label pair to fingerprints batch: ", err) + p.setDirty(err) } if err := p.labelNameToLabelValues.IndexBatch(nameToValues); err != nil { log.Error("Error indexing label name to label values batch: ", err) + p.setDirty(err) } batchSize = 0 nameToValues = index.LabelNameLabelValuesMapping{}