Commit 2befbca5 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #2042 refs[t:2042] Fix race condition at lower level.

git-svn-id: file:///svn/toku/tokudb@14802 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2702449e
......@@ -143,8 +143,10 @@ toku_multi_operation_client_unlock(void) {
void
toku_checkpoint_safe_client_lock(void) {
toku_multi_operation_client_lock();
int r = toku_pthread_rwlock_rdlock(&checkpoint_safe_lock);
assert(r == 0);
toku_multi_operation_client_unlock();
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment