mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/storage: Batch reset between writes in loop
This commit is contained in:
parent
1f036e1164
commit
c3beabc317
1 changed files with 1 additions and 0 deletions
|
|
@ -663,6 +663,7 @@ func (s *LDBStore) CleanGCIndex() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
batch.Reset()
|
||||
|
||||
for i, okIdx := range idxs {
|
||||
gcIdxKey := getGCIdxKey(&okIdx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue