• Konstantin Osipov's avatar
    Backport of: · 466ee7e5
    Konstantin Osipov authored
    ------------------------------------------------------------
    revno: 2630.4.27
    committer: Dmitry Lenev <dlenev@mysql.com>
    branch nick: mysql-6.0-3726-w2
    timestamp: Mon 2008-06-09 14:01:19 +0400
    message:
      WL#3726 "DDL locking for all metadata objects".
    
      After review fixes in progress.
    
      Changed open_table() to return bool. This allows more easily to
      distinguish cases when this function succeeds but returns no TABLE
      instance (in case of view or in case of special kind of open) from
      cases when we have an error. Pointer to TABLE instance is now
      always returned in TABLE_LIST::table member.
    
      This change allows to get rid of false assumption in open_tables()
      implementation and makes it more clear.
    466ee7e5
sql_table.cc 254 KB