-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Neo Core] Ensure LevelDB Snapshot Only be Used by One Thread #3425
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you trying to do this?
trying to avoid leveldb mis use. Like in the previous unhandled plugin exception pr, snapshot was careless and unintentionally used in multiple threads, but there was no warning or exception at all. Thus having this pr, if it can not being used cross thread, then it should throw exception if its being used that way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was tested in a real environment?
This should be tested in real environment. Reason is the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Jim8y , maybe move to draft or this still should be reviewed?
This is way to much work needed. Plus it isn't correctly. #3414 fixes the problem. |
Description
Leveldb is not thread safe, thus we should be able to avoid leveldb being used cross threads.
Fixes # (issue)
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: