From c9972dbc8f395a2b935b378a84ab6a12bbd481c1 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Wed, 7 Dec 2022 12:15:09 +0700 Subject: [PATCH] e3: no wal support (#768) --- state/inverted_index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()