mirror of
https://github.com/MariaDB/server.git
synced 2026-04-22 16:25:30 +02:00
5.1 merge
This commit is contained in:
commit
280fcf0808
109 changed files with 2545 additions and 326 deletions
|
|
@ -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 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue