Commit 6fd51b85 authored by Konstantin Osipov's avatar Konstantin Osipov

Backport of:

------------------------------------------------------------
revno: 2630.4.10
committer: Dmitry Lenev <dlenev@mysql.com>
branch nick: mysql-6.0-3726-w
timestamp: Mon 2008-05-26 15:11:26 +0400
message:
  WL#3726 "DDL locking for all metadata objects".

  After review changes in progress.
  Implemented some renames suggested by reviewer.
parent 076722c4
This diff is collapsed.
...@@ -66,7 +66,7 @@ struct MDL_LOCK ...@@ -66,7 +66,7 @@ struct MDL_LOCK
point might be upgraded to an exclusive lock and therefore conflicts point might be upgraded to an exclusive lock and therefore conflicts
with global shared lock, FALSE -- otherwise. with global shared lock, FALSE -- otherwise.
*/ */
bool upgradable; bool is_upgradable;
private: private:
/** /**
...@@ -189,7 +189,7 @@ inline void mdl_set_lock_priority(MDL_LOCK *lock, enum_mdl_prio prio) ...@@ -189,7 +189,7 @@ inline void mdl_set_lock_priority(MDL_LOCK *lock, enum_mdl_prio prio)
inline void mdl_set_upgradable(MDL_LOCK *lock) inline void mdl_set_upgradable(MDL_LOCK *lock)
{ {
DBUG_ASSERT(lock->type == MDL_SHARED && lock->state == MDL_PENDING); DBUG_ASSERT(lock->type == MDL_SHARED && lock->state == MDL_PENDING);
lock->upgradable= TRUE; lock->is_upgradable= TRUE;
} }
bool mdl_acquire_shared_lock(MDL_LOCK *l, bool *retry); bool mdl_acquire_shared_lock(MDL_LOCK *l, bool *retry);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment