Commit b254d537 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

addresses #1265

had if clauses backwards

git-svn-id: file:///svn/mysql/tokudb-engine/src@8022 c7de825b-a66e-492c-adef-691d508d4ae1
parent 711bd466
......@@ -3443,9 +3443,9 @@ int ha_tokudb::external_lock(THD * thd, int lock_type) {
/* First table lock, start transaction */
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)) {
(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