From c4f3af8e01ca2c03792872c1645dd333f251e159 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 14 Nov 2018 19:50:59 +0100 Subject: [PATCH] swarm/storage: Reset batch explicitly after write --- swarm/storage/ldbstore.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swarm/storage/ldbstore.go b/swarm/storage/ldbstore.go index e83ecc03e4..2e1fe5316c 100644 --- a/swarm/storage/ldbstore.go +++ b/swarm/storage/ldbstore.go @@ -672,6 +672,7 @@ func (s *LDBStore) CleanGCIndex() error { if err != nil { return err } + batch.Reset() log.Debug("clean gc index pass", "batch", cleanBatchCount, "checked", i, "kept", len(idxs)) }