Description:
mysql_rm_table_part2 contains a parameter: dont_log_query, which is
used for:
dont_log_query Don't write query to log files. This will also not
generate warnings if the handler files doesn't exists
As it states, this variable is used to control both warning generation
in ha_delete_table and logging. This is a bit ambiguous and should be sorted
out.
For instance, if the binary log is closed, we could just set this variable
to mysql_bin_log.is_open(), but given that it also controls warnings in
ha_delete_table, we would be messing up with the warnings as well.
How to repeat:
Just inspect the code, for example in:
tree: mysql-5.1-bugteam
revid: davi.arnaut@sun.com-20100705120039-hyv00fc5ktsvr3zh
Suggested fix:
.
Description: mysql_rm_table_part2 contains a parameter: dont_log_query, which is used for: dont_log_query Don't write query to log files. This will also not generate warnings if the handler files doesn't exists As it states, this variable is used to control both warning generation in ha_delete_table and logging. This is a bit ambiguous and should be sorted out. For instance, if the binary log is closed, we could just set this variable to mysql_bin_log.is_open(), but given that it also controls warnings in ha_delete_table, we would be messing up with the warnings as well. How to repeat: Just inspect the code, for example in: tree: mysql-5.1-bugteam revid: davi.arnaut@sun.com-20100705120039-hyv00fc5ktsvr3zh Suggested fix: .