mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
closes #5729, when returning TOKUDB_TRY_AGAIN, don't ever set the write lock type to expensive
git-svn-id: file:///svn/toku/tokudb@50514 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
ebdf618b76
commit
bb07e09525
1 changed files with 4 additions and 0 deletions
|
@ -1948,6 +1948,10 @@ maybe_pin_pair(
|
|||
else if (lock_type == PL_WRITE_EXPENSIVE || lock_type == PL_WRITE_CHEAP){
|
||||
if (p->value_rwlock.write_lock_is_expensive()) {
|
||||
run_unlockers(p, unlockers);
|
||||
// change expensive to false because
|
||||
// we will unpin the pair immedietely
|
||||
// after pinning it
|
||||
expensive = false;
|
||||
retval = TOKUDB_TRY_AGAIN;
|
||||
}
|
||||
p->value_rwlock.write_lock(expensive);
|
||||
|
|
Loading…
Add table
Reference in a new issue