#2786 closes[t:2786] bug fix from zardosht for the optimize table crash

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@21845 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2010-07-06 16:24:58 +00:00 committed by Yoni Fogel
parent 528912518c
commit b375b961d7

View file

@ -602,6 +602,7 @@ static int tokudb_commit(handlerton * hton, THD * thd, bool all) {
trx->sp_level = 0;
}
*txn = 0;
trx->sub_sp_level = NULL;
}
else if (tokudb_debug & TOKUDB_DEBUG_TXN) {
TOKUDB_TRACE("nothing to commit %d\n", all);
@ -624,6 +625,7 @@ static int tokudb_rollback(handlerton * hton, THD * thd, bool all) {
trx->sp_level = 0;
}
*txn = 0;
trx->sub_sp_level = NULL;
}
else {
if (tokudb_debug & TOKUDB_DEBUG_TXN) {