• Michael Widenius's avatar
    Don't use LOCK_status for the duration of SHOW STATUS because of possible lookups. · e36d6f03
    Michael Widenius authored
    Instead we use LOCK_status only to protect summary of thread statistics and use a new mutex, LOCK_show_status
    to protect concurrent SHOW STATUS.
    
    sql/mysqld.cc:
      Add LOCK_show_status
      Don't free LOCK_status while calculating status variables.
    sql/mysqld.h:
      Add LOCK_show_status
    sql/sql_show.cc:
      Use LOCK_show_status to protect SHOW STATUS instead of LOCK_status.
    e36d6f03
mysqld.cc 328 KB