summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorJon Olav Hauglid <jon.hauglid@sun.com>2009-12-09 09:51:20 +0100
committerJon Olav Hauglid <jon.hauglid@sun.com>2009-12-09 09:51:20 +0100
commit4592dd2d8147d54422432afcf0e87530df9a3d59 (patch)
tree0bdfaf99f9d17378300b06787012a5278bdab563 /sql/sql_handler.cc
parent8817b0d3af8333afc834ab0f44a1f713241e244b (diff)
downloadmariadb-git-4592dd2d8147d54422432afcf0e87530df9a3d59.tar.gz
Backport of revno: 2617.69.40
A pre-requisite patch for Bug#30977 "Concurrent statement using stored function and DROP FUNCTION breaks SBR". This patch changes the MDL API by introducing a namespace for lock keys: MDL_TABLE for tables and views and MDL_PROCEDURE for stored procedures and functions. The latter is needed for the fix for Bug#30977.
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 5bdf8611f5e..0bc9623c31c 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -264,7 +264,7 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, bool reopen)
memcpy(hash_tables->db, tables->db, dblen);
memcpy(hash_tables->table_name, tables->table_name, namelen);
memcpy(hash_tables->alias, tables->alias, aliaslen);
- hash_tables->mdl_request.init(0, db, name, MDL_SHARED);
+ hash_tables->mdl_request.init(MDL_TABLE, db, name, MDL_SHARED);
/* add to hash */
if (my_hash_insert(&thd->handler_tables_hash, (uchar*) hash_tables))