Commit 465be5c1 authored by Yoni Fogel's avatar Yoni Fogel

[t:2216] Fix deadlock bug introduced during merge of #2216

git-svn-id: file:///svn/toku/tokudb@18186 c7de825b-a66e-492c-adef-691d508d4ae1
parent 71768862
...@@ -347,9 +347,6 @@ toku_rollback_tablelock_on_empty_table (FILENUM filenum, ...@@ -347,9 +347,6 @@ toku_rollback_tablelock_on_empty_table (FILENUM filenum,
LSN UU(oplsn)) LSN UU(oplsn))
{ {
//TODO: Replace truncate function with something that doesn't need to mess with checkpoints. //TODO: Replace truncate function with something that doesn't need to mess with checkpoints.
toku_poll_txn_progress_function(txn, FALSE, TRUE);
yield(toku_checkpoint_safe_client_lock, yield_v);
toku_poll_txn_progress_function(txn, FALSE, FALSE);
// on rollback we have to make the file be empty, since we locked an empty table, and then may have done things to it. // on rollback we have to make the file be empty, since we locked an empty table, and then may have done things to it.
CACHEFILE cf; CACHEFILE cf;
...@@ -363,7 +360,9 @@ toku_rollback_tablelock_on_empty_table (FILENUM filenum, ...@@ -363,7 +360,9 @@ toku_rollback_tablelock_on_empty_table (FILENUM filenum,
// If r!=0 it could be because we grabbed a log on an empty table that doesn't even exist, and we never put anything into it. // If r!=0 it could be because we grabbed a log on an empty table that doesn't even exist, and we never put anything into it.
// So, just don't do anything in this case. // So, just don't do anything in this case.
BRT brt = brtv; BRT brt = brtv;
toku_poll_txn_progress_function(txn, FALSE, TRUE);
yield(toku_checkpoint_safe_client_lock, yield_v); yield(toku_checkpoint_safe_client_lock, yield_v);
toku_poll_txn_progress_function(txn, FALSE, FALSE);
r = toku_brt_truncate(brt); r = toku_brt_truncate(brt);
assert(r==0); assert(r==0);
toku_checkpoint_safe_client_unlock(); toku_checkpoint_safe_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