mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
ethdb/leveldb: check iterator error in Database.DeleteRange
This commit is contained in:
parent
c3ef6c77c2
commit
7469e5cc6f
1 changed files with 3 additions and 0 deletions
|
|
@ -233,6 +233,9 @@ func (db *Database) DeleteRange(start, end []byte) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if err := it.Error(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return batch.Write()
|
return batch.Write()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue