Commit 462c911f authored by marko's avatar marko

branches/zip: Merge 1792:1809 from trunk.

parent ffe9a4c5
...@@ -6535,9 +6535,6 @@ ha_innobase::external_lock( ...@@ -6535,9 +6535,6 @@ ha_innobase::external_lock(
innobase_register_stmt(ht, thd); innobase_register_stmt(ht, thd);
} }
trx->n_mysql_tables_in_use++;
prebuilt->mysql_has_locked = TRUE;
if (trx->isolation_level == TRX_ISO_SERIALIZABLE if (trx->isolation_level == TRX_ISO_SERIALIZABLE
&& prebuilt->select_lock_type == LOCK_NONE && prebuilt->select_lock_type == LOCK_NONE
&& thd_test_options(thd, && thd_test_options(thd,
...@@ -6586,6 +6583,9 @@ ha_innobase::external_lock( ...@@ -6586,6 +6583,9 @@ ha_innobase::external_lock(
trx->mysql_n_tables_locked++; trx->mysql_n_tables_locked++;
} }
trx->n_mysql_tables_in_use++;
prebuilt->mysql_has_locked = TRUE;
DBUG_RETURN(0); DBUG_RETURN(0);
} }
......
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