Skip to content

Potential Deadlock fixed #123

Merged
zhaohong merged 1 commit intotronprotocol:developfrom
sdargutev:develop
Feb 13, 2018
Merged

Potential Deadlock fixed #123
zhaohong merged 1 commit intotronprotocol:developfrom
sdargutev:develop

Conversation

@sdargutev
Copy link
Copy Markdown
Contributor

@sdargutev sdargutev commented Feb 12, 2018

What does this PR do?
Fixes a bug in LevelDbDataSourceImpl.closeDB, that can cause deadlock and memory leak when called multiple times.

Why are these changes required?
To avoid blocking threads and leaking memory.

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

… memory leak when calling this method multiple times.
@Rovak
Copy link
Copy Markdown
Contributor

Rovak commented Feb 12, 2018

I've fixed this one before in #71, weird that the previous fix got reverted :/

The unittests you've added should ensure this bug won't fly under the radar again

@zhaohong
Copy link
Copy Markdown
Contributor

@Rovak i'll check why got reverted

@sdargutev thanks!

@zhaohong zhaohong merged commit 59bf107 into tronprotocol:develop Feb 13, 2018
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