• Konstantin Osipov's avatar
    Backport of: · 36ab5d79
    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.
    36ab5d79
lock_multi.test 16.2 KB