Commit 08559dad authored by Yoni Fogel's avatar Yoni Fogel

Closes #2055 closes[t:2055] Addresses #2042 refs[t:2042] Fix race condition caused by r14802

A client (read lock) must hold the multi-operation lock during the entire duration of holding the checkpoint-safe lock.
The multi-operation lock was being released too early.

git-svn-id: file:///svn/toku/tokudb@14845 c7de825b-a66e-492c-adef-691d508d4ae1
parent 29ec0a3c
......@@ -152,13 +152,13 @@ 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
toku_checkpoint_safe_client_unlock(void) {
int r = toku_pthread_rwlock_rdunlock(&checkpoint_safe_lock);
assert(r == 0);
toku_multi_operation_client_unlock();
}
......
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