Commit efcf996f authored by unknown's avatar unknown

Bug#18775 - Temporary table from alter table visible to other threads

Reverting part of the patch. NDB has unencoded names in their
data dictionary.

parent 312034fa
...@@ -3435,13 +3435,9 @@ bool mysql_create_table_internal(THD *thd, ...@@ -3435,13 +3435,9 @@ bool mysql_create_table_internal(THD *thd,
*/ */
if (!(create_info->options & HA_LEX_CREATE_TMP_TABLE)) if (!(create_info->options & HA_LEX_CREATE_TMP_TABLE))
{ {
char dbbuff[FN_REFLEN];
char tbbuff[FN_REFLEN];
bool create_if_not_exists = bool create_if_not_exists =
create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS; create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS;
VOID(tablename_to_filename(db, dbbuff, sizeof(dbbuff))); if (ha_table_exists_in_engine(thd, db, table_name))
VOID(tablename_to_filename(table_name, tbbuff, sizeof(tbbuff)));
if (ha_table_exists_in_engine(thd, dbbuff, tbbuff))
{ {
DBUG_PRINT("info", ("Table with same name already existed in handler")); DBUG_PRINT("info", ("Table with same name already existed in handler"));
......
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