1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-4206 : log all slow statements (do not use filters), if log_slow_filter is empty.

This commit is contained in:
Vladislav Vaintroub
2013-05-08 20:37:17 +02:00
parent e013bf9f0e
commit f33178b99a
3 changed files with 27 additions and 2 deletions

View File

@ -1497,7 +1497,8 @@ void log_slow_statement(THD *thd)
/* Follow the slow log filter configuration. */
if (!thd->enable_slow_log ||
!(thd->variables.log_slow_filter & thd->query_plan_flags))
(thd->variables.log_slow_filter
&& !(thd->variables.log_slow_filter & thd->query_plan_flags)))
DBUG_VOID_RETURN;
if (((thd->server_status & SERVER_QUERY_WAS_SLOW) ||