• Igor Babaev's avatar
    Fixed bug mdev-3891. · 65820439
    Igor Babaev authored
    If a query referenced some system statistical tables, but not all of them,
    then executing an ANALYZE command simultaneously with this query could
    lead to a deadlock.
    The fix prohibited reading statistics from system statistical tables
    for such queries.
    
    Removed the function unlock_tables_n_open_system_tables_for_write()
    as not used anymore.
    Performed some minor refactoring of the code in sql_statistics.cc. 
    65820439
sql_statistics.cc 90.2 KB