Commit 9de22318 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

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