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

close batch after write in nodedb #130

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

Stumble
Copy link
Contributor

@Stumble Stumble commented Mar 12, 2019

This one is related to tendermint/tendermint#3397, that writebatch should be closed if no longer needed. This one could be the major part of memory leaking when use CLevelDB, since it's in the hot loop.

Copy link
Contributor

@liamsi liamsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @Stumble. LGTM 👍

@cwgoes
Copy link
Contributor

cwgoes commented Mar 13, 2019

Looks like we should patch this pretty quickly downstream.

@liamsi liamsi merged commit cd1feb8 into cosmos:master Mar 13, 2019
@liamsi
Copy link
Contributor

liamsi commented Mar 13, 2019

Boy, I accidentally merged this directly into master (instead of develop). Did notice the base branch.. Will revert, reopen, change base branch, and create a proper release containing that change (today).

liamsi added a commit that referenced this pull request Mar 13, 2019
@Stumble
Copy link
Contributor Author

Stumble commented Mar 13, 2019

no problem

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.

3 participants