From 21b97d1e0429abfceec1487c4e0dbdaf0897d005 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Thu, 2 Mar 2017 15:10:13 +0100 Subject: [PATCH] Fix compaction selection procedure --- compact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compact.go b/compact.go index 18c16ace2..51d4ce0d1 100644 --- a/compact.go +++ b/compact.go @@ -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 }