mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Merge 9c804eddc3 into 12eabbd76d
This commit is contained in:
commit
0a0bc6ff3c
1 changed files with 1 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ func newJournal() *journal {
|
||||||
// It is semantically similar to calling 'newJournal', but the underlying slices
|
// It is semantically similar to calling 'newJournal', but the underlying slices
|
||||||
// can be reused.
|
// can be reused.
|
||||||
func (j *journal) reset() {
|
func (j *journal) reset() {
|
||||||
|
clear(j.entries)
|
||||||
j.entries = j.entries[:0]
|
j.entries = j.entries[:0]
|
||||||
j.validRevisions = j.validRevisions[:0]
|
j.validRevisions = j.validRevisions[:0]
|
||||||
clear(j.mutations)
|
clear(j.mutations)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue