Skip to content

Commit

Permalink
core/state/snapshot: don't reset the iterator, leveldb's screwy
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Mar 30, 2021
1 parent bd3440e commit 091c2c7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/state/snapshot/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,6 @@ func diffToDisk(bottom *diffLayer) *diskLayer {
log.Crit("Failed to write storage deletions", "err", err)
}
batch.Reset()

// Recreate the iterator to allow LevelDB to compact the data away
it.Release()
it = rawdb.IterateStorageSnapshots(base.diskdb, hash) // Ok to recreate with same hash, old slots deleted
}
}
}
Expand Down

0 comments on commit 091c2c7

Please sign in to comment.