merged 35396 to 5.0-bugteam

This commit is contained in:
Georgi Kodinov 2009-01-29 14:45:24 +02:00
commit 1622582b45

View File

@ -2333,8 +2333,9 @@ void log_slow_statement(THD *thd)
{ {
thd->proc_info="logging slow query"; thd->proc_info="logging slow query";
if ((ulong) (thd->start_time - thd->time_after_lock) > if ((thd->start_time > thd->time_after_lock &&
thd->variables.long_query_time || (ulong) (thd->start_time - thd->time_after_lock) >
thd->variables.long_query_time) ||
(thd->server_status & (thd->server_status &
(SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) && (SERVER_QUERY_NO_INDEX_USED | SERVER_QUERY_NO_GOOD_INDEX_USED)) &&
opt_log_queries_not_using_indexes && opt_log_queries_not_using_indexes &&