swarm/storage: Reset batch explicitly after write

This commit is contained in:
lash 2018-11-14 19:50:59 +01:00
parent 10bd9583a9
commit c4f3af8e01

View file

@ -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))
}