Commit 0366ebcf authored by Alfranio Correia's avatar Alfranio Correia

Introduced this code to make the gcc 4.6.1 compiler happy. When

warnings are converted to errors, the compiler complains about
the fact that binlog_can_be_corrupted is defined but never used.

We need to check if this is a dead code or if someone removed any
code by mistake.
parent 4af038c6
...@@ -720,6 +720,19 @@ impossible position"; ...@@ -720,6 +720,19 @@ impossible position";
else if (event_type == STOP_EVENT) else if (event_type == STOP_EVENT)
binlog_can_be_corrupted= FALSE; binlog_can_be_corrupted= FALSE;
/*
Introduced this code to make the gcc 4.6.1 compiler happy. When
warnings are converted to errors, the compiler complains about
the fact that binlog_can_be_corrupted is defined but never used.
We need to check if this is a dead code or if someone removed any
code by mistake.
/Alfranio
*/
if (binlog_can_be_corrupted)
sql_print_information("The binlog may be corrupted.");
pos = my_b_tell(&log); pos = my_b_tell(&log);
if (RUN_HOOK(binlog_transmit, before_send_event, if (RUN_HOOK(binlog_transmit, before_send_event,
(thd, flags, packet, log_file_name, pos))) (thd, flags, packet, log_file_name, pos)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment