summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2009-12-10 11:41:03 +0300
committerKonstantin Osipov <kostja@sun.com>2009-12-10 11:41:03 +0300
commitdb6864b2a712cb9320bdf23c38482da65949a753 (patch)
tree1af99bc4bb290dd6389f05386dda02b151f85ece /sql/sql_handler.cc
parent2e73ea7ea8a56765982ba5c8642ed5b14ef39fde (diff)
parent1b5f2b9030e0dc19eaac22de7db429b6a7ba31ae (diff)
downloadmariadb-git-db6864b2a712cb9320bdf23c38482da65949a753.tar.gz
Merge with next-4284.
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index a7fe5a03f10..1966c7d8b39 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -321,6 +321,7 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
can close a single table only.
*/
close_thread_tables(thd);
+ thd->mdl_context.release_all_locks();
my_error(ER_ILLEGAL_HA, MYF(0), hash_tables->alias);
error= TRUE;
}