swarm/storage: Write every batch on iteration

This commit is contained in:
lash 2018-11-14 18:36:29 +01:00
parent 23de6197f9
commit 703bced372

View file

@ -633,6 +633,9 @@ func (s *LDBStore) CleanGCIndex() error {
} }
} }
totalEntryCount++ totalEntryCount++
if err := s.db.Write(&batch); err != nil {
return err
}
it.Next() it.Next()
} }