summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <kroki/tomash@moonlight.intranet>2006-08-29 17:00:46 +0400
committerunknown <kroki/tomash@moonlight.intranet>2006-08-29 17:00:46 +0400
commit2996b29ae04a9c6954654c785d130e68609aa7f0 (patch)
tree5ac112e9ed8335bdeafb4267a70be5d51270cf14 /sql/sql_table.cc
parentc327d6f6534139d9629cf9d93622391e16c2c608 (diff)
parent3e619d6260964e16a0200a3378e0fef85290479b (diff)
downloadmariadb-git-2996b29ae04a9c6954654c785d130e68609aa7f0.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1-runtime
into moonlight.intranet:/home/tomash/src/mysql_ab/mysql-4.1-bug21096 sql/sql_table.cc: Auto merged
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index a5cb0d45664..da66b556b5e 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -214,7 +214,7 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
bool some_tables_deleted=0, tmp_table_deleted=0, foreign_key_error=0;
DBUG_ENTER("mysql_rm_table_part2");
- if (lock_table_names(thd, tables))
+ if (!drop_temporary && lock_table_names(thd, tables))
DBUG_RETURN(1);
for (table=tables ; table ; table=table->next)
@@ -311,7 +311,8 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
}
}
- unlock_table_names(thd, tables);
+ if (!drop_temporary)
+ unlock_table_names(thd, tables);
DBUG_RETURN(error);
}