mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Delete symbols files.
This commit is contained in:
parent
259e09fe5f
commit
9a50267ea5
|
@ -989,6 +989,13 @@ func (c *LeveledCompactor) populateSymbols(sets []storage.ChunkSeriesSet, outBlo
|
||||||
// files now.
|
// files now.
|
||||||
closeIt = nil
|
closeIt = nil
|
||||||
_ = it.Close()
|
_ = it.Close()
|
||||||
|
|
||||||
|
// Delete symbol files from symbolsBatcher.
|
||||||
|
for _, fn := range batchers[ix].symbolFiles() {
|
||||||
|
if err := os.Remove(fn); err != nil {
|
||||||
|
return errors.Wrap(err, "deleting symbols file")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue