mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
cmd/geth: release iterator in checkStateContent
checkStateContent wraps a database iterator but never released it, which can hold a read snapshot open for the duration of the scan.
This commit is contained in:
parent
06b23b4293
commit
307d769ea5
1 changed files with 1 additions and 0 deletions
|
|
@ -409,6 +409,7 @@ func checkStateContent(ctx *cli.Context) error {
|
|||
startTime = time.Now()
|
||||
lastLog = time.Now()
|
||||
)
|
||||
defer it.Release()
|
||||
for it.Next() {
|
||||
count++
|
||||
k := it.Key()
|
||||
|
|
|
|||
Loading…
Reference in a new issue