This commit is contained in:
Daniel Liu 2026-02-25 07:48:20 +00:00 committed by GitHub
commit 48e7294d47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,6 +68,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.dirties)