mirror of
https://github.com/prometheus/prometheus
synced 2025-02-09 00:18:18 +00:00
Fix compaction selection procedure
This commit is contained in:
parent
327e07e8d0
commit
21b97d1e04
@ -117,7 +117,7 @@ func (c *compactor) Plan(dir string) ([][]string, error) {
|
||||
}
|
||||
|
||||
// Then we care about compacting multiple blocks, starting with the oldest.
|
||||
for i := 0; i < len(bs)-compactionBlocksLen+1; i += compactionBlocksLen {
|
||||
for i := 0; i < len(bs)-compactionBlocksLen+1; i++ {
|
||||
if c.match(bs[i : i+3]) {
|
||||
return sliceDirs(i, i+compactionBlocksLen), nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user