diff options
author | Nirbhay Choubey <nirbhay@skysql.com> | 2014-04-08 10:36:34 -0400 |
---|---|---|
committer | Nirbhay Choubey <nirbhay@skysql.com> | 2014-04-08 10:36:34 -0400 |
commit | 421326310168e2b0a83eddcf9520336e1d58ea42 (patch) | |
tree | 9ec49ac74c451cf03581a619eb92a7afae1c5eef /sql/mdl.cc | |
parent | 9d2e90f379654fb65c0eab006213d772302bcff7 (diff) | |
parent | 41a2ca5c16636c12d5c2adce70ec7ddb7a2fc711 (diff) | |
download | mariadb-git-421326310168e2b0a83eddcf9520336e1d58ea42.tar.gz |
Merging mariadb-10.0.10.
* bzr merge -rtag:mariadb-10.0.10 maria/10.0.
Diffstat (limited to 'sql/mdl.cc')
-rw-r--r-- | sql/mdl.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/mdl.cc b/sql/mdl.cc index ff53793554a..8360243b4da 100644 --- a/sql/mdl.cc +++ b/sql/mdl.cc @@ -2007,8 +2007,6 @@ bool MDL_lock::has_pending_conflicting_lock(enum_mdl_type type) { bool result; - mysql_mutex_assert_not_owner(&LOCK_open); - mysql_prlock_rdlock(&m_rwlock); result= (m_waiting.bitmap() & incompatible_granted_types_bitmap()[type]); mysql_prlock_unlock(&m_rwlock); @@ -2183,7 +2181,6 @@ MDL_context::try_acquire_lock_impl(MDL_request *mdl_request, /* Don't take chances in production. */ mdl_request->ticket= NULL; - mysql_mutex_assert_not_owner(&LOCK_open); /* Check whether the context already holds a shared lock on the object, @@ -2273,7 +2270,6 @@ MDL_context::clone_ticket(MDL_request *mdl_request) { MDL_ticket *ticket; - mysql_mutex_assert_not_owner(&LOCK_open); /* By submitting mdl_request->type to MDL_ticket::create() we effectively downgrade the cloned lock to the level of @@ -2934,7 +2930,6 @@ void MDL_context::release_lock(enum_mdl_duration duration, MDL_ticket *ticket) lock->key.db_name(), lock->key.name())); DBUG_ASSERT(this == ticket->get_ctx()); - mysql_mutex_assert_not_owner(&LOCK_open); lock->remove_ticket(&MDL_lock::m_granted, ticket); @@ -3032,8 +3027,6 @@ void MDL_context::release_all_locks_for_name(MDL_ticket *name) void MDL_ticket::downgrade_lock(enum_mdl_type type) { - mysql_mutex_assert_not_owner(&LOCK_open); - /* Do nothing if already downgraded. Used when we FLUSH TABLE under LOCK TABLES and a table is listed twice in LOCK TABLES list. |