Commit cae6e72a authored by Konstantin Osipov's avatar Konstantin Osipov

Backport of:

----------------------------------------------------------
revno: 2617.22.7
committer: Konstantin Osipov <kostja@sun.com>
branch nick: mysql-6.0-runtime
timestamp: Tue 2009-01-27 16:41:58 +0300
message:
  WL#4284 "Transactional DDL locking" review.
  Improve a comment.


sql/mdl.cc:
  Improve a comment.
parent 411a8195
......@@ -1320,10 +1320,11 @@ void mdl_release_locks(MDL_CONTEXT *context)
{
DBUG_PRINT("info", ("found lock to release lock_data=%p", lock_data));
/*
We should not release locks which pending shared locks as these
are not associated with lock object and don't present in its
lists. Allows us to avoid problems in open_tables() in case of
back-off
Don't call release_lock() for a shared lock if has not been
granted. Lock state in this case is MDL_INITIALIZED.
We have pending and granted shared locks in the same context
when this function is called from the "back-off" path of
open_tables().
*/
if (lock_data->state != MDL_INITIALIZED)
{
......
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