Browse Source

storage: Mark storage as dirty if indexing fails

pull/2587/head
beorn7 8 years ago
parent
commit
f3365c4f26
  1. 2
      storage/local/persistence.go

2
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{}

Loading…
Cancel
Save