• Konstantin Osipov's avatar
    Backport of: · f7ba9daf
    Konstantin Osipov authored
    ------------------------------------------------------------
    revno: 2630.9.2
    committer: Dmitry Lenev <dlenev@mysql.com>
    branch nick: mysql-6.0-3726-w3
    timestamp: Tue 2008-06-10 18:01:56 +0400
    message:
      WL#3726 "DDL locking for all metadata objects".
    
      After review fixes in progress.
    
    
    sql/mdl.cc:
      Changed mdl_acquire_shared_lock() signature to accept MDL_CONTEXT
      as one of arguments as described in specification.
    sql/mdl.h:
      Changed mdl_acquire_shared_lock() signature to accept MDL_CONTEXT
       as one of arguments as described in specification.
    sql/sql_base.cc:
      Changed mdl_acquire_shared_lock() signature to accept MDL_CONTEXT
      as one of arguments as described in specification.
      Renamed handle_failed_open_table_attempt() to
      recover_from_failed_open_table_attempt() as suggested by review.
      Added comment clarifying why we need to check TABLE::db_stat
      while looking at TABLE instances open by other threads.
    sql/sql_show.cc:
      Changed mdl_acquire_shared_lock() signature to accept MDL_CONTEXT
      as one of arguments as described in specification.
    f7ba9daf
mdl.h 7.07 KB