Commit c70b640a authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #5195 fix the bug exposed by the type_bit test

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@45997 c7de825b-a66e-492c-adef-691d508d4ae1
parent e254bbbf
......@@ -469,10 +469,12 @@ ha_tokudb::commit_inplace_alter_table(TABLE *altered_table, Alter_inplace_info *
// abort the transaction NOW so that any alters are rolled back. this allows the following restores to work.
THD *thd = ha_thd();
tokudb_trx_data* trx = (tokudb_trx_data *) thd_data_get(thd, tokudb_hton->slot);
assert(trx && transaction == trx->stmt);
assert(trx && transaction == trx->stmt && transaction == trx->sub_sp_level);
abort_txn(transaction);
transaction = NULL;
trx->stmt = NULL;
trx->sub_sp_level = NULL;
trx->should_abort = false;
tokudb_alter_ctx *ctx = static_cast<tokudb_alter_ctx *>(ha_alter_info->handler_ctx);
......
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