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;
Instead of all those changes, this will also do:
>>bzr diff Percona- Server/ sql/sql_ parse.cc Server/ sql/sql_ parse.cc' Server/ sql/sql_ parse.cc 2012-08-13 13:42:13 +0000 Server/ sql/sql_ parse.cc 2012-08-31 03:56:00 +0000 .log_slow_ filter != 0 &&
(!(thd- >variables. log_slow_ filter & thd->query_ plan_flags) || variables. log_slow_ filter & SLOG_F_QC_NO) && variables. log_slow_ filter & (1 << SLOG_F_QC_NO)) &&
(thd- >query_ plan_flags & QPLAN_QC)))) VOID_RETURN;
=== modified file 'Percona-
--- Percona-
+++ Percona-
@@ -1535,7 +1535,7 @@
/* Follow the slow log filter configuration. */
if (thd->variables
- ((thd->
+ ((thd->
DBUG_