Commit 711bd466 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1285

check in fix in main line

git-svn-id: file:///svn/mysql/tokudb-engine/src@8014 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1e34fe11
......@@ -3441,7 +3441,11 @@ int ha_tokudb::external_lock(THD * thd, int lock_type) {
DBUG_ASSERT(trx->stmt == 0);
transaction = NULL; // Safety
/* First table lock, start transaction */
if ((thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN | OPTION_TABLE_LOCK)) && !trx->all) {
if ((thd->options & (OPTION_NOT_AUTOCOMMIT | OPTION_BEGIN | OPTION_TABLE_LOCK)) &&
!trx->all &&
(thd_sql_command(thd) == SQLCOM_CREATE_TABLE) &&
(thd_sql_command(thd) == SQLCOM_DROP_TABLE) &&
(thd_sql_command(thd) == SQLCOM_ALTER_TABLE)) {
/* QQQ We have to start a master transaction */
DBUG_PRINT("trans", ("starting transaction all: options: 0x%lx", (ulong) thd->options));
//
......
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