1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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.
This commit is contained in:
Konstantin Osipov
2009-12-04 01:48:14 +03:00
parent 67c1b06f12
commit a2312bf2c6

View File

@ -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)
{