Commit b9716da1 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5312 fix a bit of strangeness that's not exactly a bug


git-svn-id: file:///svn/toku/tokudb@47256 c7de825b-a66e-492c-adef-691d508d4ae1
parent f812f52b
...@@ -1977,7 +1977,7 @@ maybe_pin_pair( ...@@ -1977,7 +1977,7 @@ maybe_pin_pair(
pair_unlock(p); pair_unlock(p);
goto exit; goto exit;
} }
else if (p->value_rwlock.try_write_lock(expensive)){ if (lock_type != PL_READ && p->value_rwlock.try_write_lock(expensive)){
pair_unlock(p); pair_unlock(p);
goto exit; goto exit;
} }
......
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