• unknown's avatar
    Fixed a deadlock problem when using LOCK TABLE in one thread and DROP TABLE in another · 374ea106
    unknown authored
    
    sql/lock.cc:
      Added functions to handle list of table name locks
    sql/mysql_priv.h:
      Added functions to handle list of named locks
    sql/sql_rename.cc:
      Use new general table name lock functions
    sql/sql_table.cc:
      Require table name locks when doing drop table.
      This fixed a deadlock problem when using LOCK TABLE in one thread and DROP TABLE in another
    374ea106
sql_rename.cc 3.85 KB