summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index f88a3ef05f9..15eab7f32df 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -713,15 +713,6 @@ end:
*/
share= (TABLE_SHARE*) 1;
}
- else
- {
- /*
- To be able perform any operation on table we should own
- some kind of metadata lock on it.
- */
- DBUG_ASSERT(thd->mdl_context.is_lock_owner(MDL_key::TABLE, db, table_name,
- MDL_SHARED));
- }
mysql_mutex_unlock(&LOCK_open);
DBUG_RETURN(share);