Commit 3b607e2f authored by Yoni Fogel's avatar Yoni Fogel

[t:2835] Remove some code that could cause later crashes.

Cleaning up of rollback logs in toku_rollback_txn_close is indicative of a problem that should cause a crash right away,
not the next time you start up mysql.

This might be the direct cause of global's problem,
but requires another bug to exist (rollback nodes must not have been cleaned up during a 'successful' abort or commit
first in order for the 'cleanup' to cause a problem)

git-svn-id: file:///svn/toku/tokudb@22526 c7de825b-a66e-492c-adef-691d508d4ae1
parent fc8da7b5
......@@ -140,12 +140,6 @@ toku_apply_txn (TOKUTXN txn, YIELDF yield, void*yieldv, LSN lsn,
}
void toku_rollback_txn_close (TOKUTXN txn) {
{
//Clean up all rollback logs if they exist.
//Note: This will NOT cleanup any rollback logs as in 'rollinclude'
int r = toku_apply_txn(txn, NULL, NULL, ZERO_LSN, NULL);
assert(r==0);
}
assert(txn->spilled_rollback_head.b == ROLLBACK_NONE.b);
assert(txn->spilled_rollback_tail.b == ROLLBACK_NONE.b);
assert(txn->current_rollback.b == ROLLBACK_NONE.b);
......
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