Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak(plainstate): add close func to close cursors #10368

Merged

Conversation

revitteth
Copy link
Collaborator

If repeatedly using the plainstate in an iteration you can end up with so many cursors that tx.Rollback/Commit takes a very long time. The fix is to clean up the cursors as you go with Close() on the plainstate.

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) May 16, 2024 07:43
@AskAlexSharov AskAlexSharov merged commit c389c6b into erigontech:main May 16, 2024
9 checks passed
@revitteth revitteth deleted the tweak/plainstate-cursor-close branch May 16, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants