Corrected the MySQL slow query processing based on sql/log.cc