mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/storage: Write every batch on iteration
This commit is contained in:
parent
23de6197f9
commit
703bced372
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue