mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
5.1 merge
This commit is contained in:
@ -1738,8 +1738,9 @@ void log_slow_statement(THD *thd)
|
||||
ulonglong end_utime_of_query= thd->current_utime();
|
||||
thd_proc_info(thd, "logging slow query");
|
||||
|
||||
if (((end_utime_of_query - thd->utime_after_lock) >
|
||||
thd->variables.long_query_time ||
|
||||
if ((((end_utime_of_query > thd->utime_after_lock) &&
|
||||
((end_utime_of_query - thd->utime_after_lock) >
|
||||
thd->variables.long_query_time)) ||
|
||||
((thd->server_status &
|
||||
(SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) &&
|
||||
opt_log_queries_not_using_indexes &&
|
||||
|
Reference in New Issue
Block a user