Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ledger-on-memory: Do not create iterators on a mutable log. (#12626)
We must copy the slice of the log that we are reading, to ensure that we are not iterating over the log while we mutate it in a separate transaction. (In other words, objects must not escape the `readLog` function.) This is most likely the cause of a flaky test run that we saw recently. CHANGELOG_BEGIN CHANGELOG_END
- Loading branch information