swarm/storage: Batch reset between writes in loop

This commit is contained in:
lash 2018-11-14 19:58:16 +01:00
parent 1f036e1164
commit c3beabc317

View file

@ -663,6 +663,7 @@ func (s *LDBStore) CleanGCIndex() error {
if err != nil { if err != nil {
return err return err
} }
batch.Reset()
for i, okIdx := range idxs { for i, okIdx := range idxs {
gcIdxKey := getGCIdxKey(&okIdx) gcIdxKey := getGCIdxKey(&okIdx)