• dlenev@mysql.com's avatar
    Fix for bug #12423 "Deadlock when doing FLUSH PRIVILEGES and GRANT in · da2af0bb
    dlenev@mysql.com authored
    multi-threaded environment".
    
    To avoid deadlocks between several simultaneously run account management 
    commands (particularly between FLUSH PRIVILEGES/SET PASSWORD and GRANT
    commands) we should always take table and internal locks during their
    execution in the same order. In other words we should first open and lock
    privilege tables and only then obtain acl_cache::lock/LOCK_grant locks.
    da2af0bb
grant2.result 4.44 KB