Commit 066a02e9 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

fix the crash.sql problem when transactions are turned off. closes #734

git-svn-id: file:///svn/mysql/tokudb-engine/src@3568 c7de825b-a66e-492c-adef-691d508d4ae1
parent b8c6f4bf
......@@ -2618,6 +2618,8 @@ int ha_tokudb::external_lock(THD * thd, int lock_type) {
int ha_tokudb::start_stmt(THD * thd, thr_lock_type lock_type) {
TOKUDB_DBUG_ENTER("ha_tokudb::start_stmt");
if (!(tokudb_init_flags & DB_INIT_TXN))
TOKUDB_DBUG_RETURN(0);
int error = 0;
tokudb_trx_data *trx = (tokudb_trx_data *) thd->ha_data[tokudb_hton->slot];
DBUG_ASSERT(trx);
......
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