summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@quad.>2008-02-11 14:04:30 +0300
committerunknown <anozdrin/alik@quad.>2008-02-11 14:04:30 +0300
commit6f6fabb7f97db7e9b8a5efaa2cd337b34fdf9161 (patch)
tree245386a409758cdb35cd88571871356935b68bd3 /sql/rpl_rli.cc
parentf1f2bd8c0dcade435e117bf922d4882b7ad23188 (diff)
downloadmariadb-git-6f6fabb7f97db7e9b8a5efaa2cd337b34fdf9161.tar.gz
Patch to eliminate some valgrind warnings in debug printout code.
(originally from Mats) sql/rpl_rli.cc: Adding variable to mark an instance of Relay_log_info as fake. sql/rpl_rli.h: Adding variable to mark an instance of Relay_log_info as fake. sql/slave.cc: Not printing debug information if we are working with a fake instance of Relay_log_info. This because the result of calling update is nonsense, and trying to print it generates valgrind warnings. sql/sql_binlog.cc: Marking newly created instance of Relay_log_info as a fake instance.
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 3e9a484126a..03f790b934f 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -33,7 +33,10 @@ Relay_log_info::Relay_log_info()
:Slave_reporting_capability("SQL"),
no_storage(FALSE), replicate_same_server_id(::replicate_same_server_id),
info_fd(-1), cur_log_fd(-1), save_temporary_tables(0),
- group_relay_log_pos(0),
+ group_relay_log_pos(0), event_relay_log_pos(0),
+#if HAVE_purify
+ is_fake(FALSE),
+#endif
cur_log_old_open_count(0), group_master_log_pos(0), log_space_total(0),
ignore_log_space_limit(0), last_master_timestamp(0), slave_skip_counter(0),
abort_pos_wait(0), slave_run_id(0), sql_thd(0),