summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@oracle.com>2011-10-14 14:24:15 +0100
committerAlfranio Correia <alfranio.correia@oracle.com>2011-10-14 14:24:15 +0100
commit7b4ebc16c391c5933072cd45e3d5ee4553c915d8 (patch)
tree51c567cfedf591b74edf729779073c6121771908 /sql/sql_repl.cc
parent0368a8bd3a738e536dace204ca820d145d47cbf2 (diff)
downloadmariadb-git-7b4ebc16c391c5933072cd45e3d5ee4553c915d8.tar.gz
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.
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc
index a37e8700e4f..80fef42434c 100644
--- a/sql/sql_repl.cc
+++ b/sql/sql_repl.cc
@@ -720,6 +720,19 @@ impossible position";
else if (event_type == STOP_EVENT)
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);
if (RUN_HOOK(binlog_transmit, before_send_event,
(thd, flags, packet, log_file_name, pos)))