Comment 3 for bug 1030783

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Instead of all those changes, this will also do:

>>bzr diff Percona-Server/sql/sql_parse.cc
=== modified file 'Percona-Server/sql/sql_parse.cc'
--- Percona-Server/sql/sql_parse.cc 2012-08-13 13:42:13 +0000
+++ Percona-Server/sql/sql_parse.cc 2012-08-31 03:56:00 +0000
@@ -1535,7 +1535,7 @@
   /* Follow the slow log filter configuration. */
   if (thd->variables.log_slow_filter != 0 &&
       (!(thd->variables.log_slow_filter & thd->query_plan_flags) ||
- ((thd->variables.log_slow_filter & SLOG_F_QC_NO) &&
+ ((thd->variables.log_slow_filter & (1 << SLOG_F_QC_NO)) &&
         (thd->query_plan_flags & QPLAN_QC))))
     DBUG_VOID_RETURN;