diff --git a/state/inverted_index.go b/state/inverted_index.go index f4485446f..e52550940 100644 --- a/state/inverted_index.go +++ b/state/inverted_index.go @@ -329,7 +329,7 @@ func (ii *InvertedIndex) DiscardHistory(tmpdir string) { func (ii *InvertedIndex) StartWrites(tmpdir string) { ii.walLock.Lock() defer ii.walLock.Unlock() - ii.wal = ii.newWriter(tmpdir, true, false) + ii.wal = ii.newWriter(tmpdir, WALCollectorRam > 0, false) } func (ii *InvertedIndex) FinishWrites() { ii.walLock.Lock()