This commit is contained in:
Daniel Liu 2026-05-21 21:55:09 -07:00 committed by GitHub
commit 0a0bc6ff3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,6 +204,7 @@ func newJournal() *journal {
// It is semantically similar to calling 'newJournal', but the underlying slices
// can be reused.
func (j *journal) reset() {
clear(j.entries)
j.entries = j.entries[:0]
j.validRevisions = j.validRevisions[:0]
clear(j.mutations)