mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
#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:
parent
528912518c
commit
b375b961d7
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue