• Konstantin Osipov's avatar
    Backport of: · 98c4476b
    Konstantin Osipov authored
    ------------------------------------------------------------
    revno: 2476.1116.1
    committer: davi@mysql.com/endora.local
    timestamp: Fri 2007-12-14 10:10:19 -0200
    message:
    DROP TABLE under LOCK TABLES simultaneous to a FLUSH TABLES
    WITH READ LOCK (global read lock) can lead to a deadlock.
    
    The solution is to not wait for the global read lock if the
    thread is holding any locked tables.
    
    Related to bugs 23713 and 32395. This issues is being fixed
    only on 6.0 because it depends on the fix for bug 25858 --
    which was fixed only on 6.0.
    98c4476b
sql_table.cc 252 KB