10000 Using Read/Write Lock guard in all corresponding places by toktarev · Pull Request #7148 · facebook/rocksdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Using Read/Write Lock guard in all corresponding places #7148

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

Closed
wants to merge 1 commit into from

Conversation

toktarev
Copy link

The problem in many places is that RocksDB uses Read/Write locks in non safe mode.

This PR protects corresponding places with corresponding guards.

@toktarev toktarev changed the title Using ReadLock guard in all corresponding places Using Read/Write Lock guard in all corresponding places Jul 18, 2020
@toktarev toktarev force-pushed the issue/lock_guard branch 14 times, most recently from e9bde33 to 5951abd Compare July 18, 2020 17:43
The problem in many places is that RocksDB uses Read/Write locks in non safe mode.

This PR protects corresponding places with corresponding guards.
@toktarev
Copy link
Author

@ajkr may I have any chance for review ?

@toktarev toktarev closed this Dec 13, 2020
@cculianu
Copy link
Contributor

Lock guards should always be used in C++ code that may throw. I forget if rocksdb is compiled with exceptions (I think it may not be?). Regardless lack of use of lock guards in modern C++ is in general a code smell... so this PR or something like it should be considered!

Sign up for free to join this conversation on GitHub. Alr 5C32 eady have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0