• Michael Widenius's avatar
    Added THD::utime_after_query to avoid calling current_utime() twice for every end-of-query · 32e4c7e1
    Michael Widenius authored
    Increment long_query_count also if thd->variables.log_slow_rate_limit is used
    Added new state "Writing to binlog"
    
    
    sql/sql_class.h:
      Added THD::utime_after_query to avoid calling current_utime() twice for every end-of-query
    sql/sql_parse.cc:
      Increment long_query_count also if thd->variables.log_slow_rate_limit is used
      Removed extra calls to thd_proc_info(thd, "logging slow query") and thd->current_utime();
    sql/sql_table.cc:
      Added new state "Writing to binlog"
    32e4c7e1
sql_parse.cc 234 KB