Sergei,
Same comments as in the 5.5 MP + the changes in sql_parse.cc are still wrong:
1. Now we do query rewriting even if we don't need it ('rewrite' will be true if all of opt_log, opt_log_raw and thd->slave_thread are false).
2. If the general log is disabled, we will still do general logging, because the "if (!thd->slave_thread)" check will pass.
3. If both the general log and --log-raw are enabled, we will be general-logging queries twice, once in dispatch_command() and once in mysql_parse()
Do we really need to change anything in sql_parse.cc? I.e. what problem are you trying to solve?
« Back to merge proposal
Sergei,
Same comments as in the 5.5 MP + the changes in sql_parse.cc are still wrong:
1. Now we do query rewriting even if we don't need it ('rewrite' will be true if all of opt_log, opt_log_raw and thd->slave_thread are false).
2. If the general log is disabled, we will still do general logging, because the "if (!thd-> slave_thread) " check will pass.
3. If both the general log and --log-raw are enabled, we will be general-logging queries twice, once in dispatch_command() and once in mysql_parse()
Do we really need to change anything in sql_parse.cc? I.e. what problem are you trying to solve?