diff options
author | unknown <anozdrin/alik@quad.> | 2008-02-11 14:04:30 +0300 |
---|---|---|
committer | unknown <anozdrin/alik@quad.> | 2008-02-11 14:04:30 +0300 |
commit | 6f6fabb7f97db7e9b8a5efaa2cd337b34fdf9161 (patch) | |
tree | 245386a409758cdb35cd88571871356935b68bd3 /sql/rpl_rli.h | |
parent | f1f2bd8c0dcade435e117bf922d4882b7ad23188 (diff) | |
download | mariadb-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.h')
-rw-r--r-- | sql/rpl_rli.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h index a3a57ad4ce9..36daffae1af 100644 --- a/sql/rpl_rli.h +++ b/sql/rpl_rli.h @@ -154,6 +154,10 @@ public: ulonglong event_relay_log_pos; ulonglong future_event_relay_log_pos; +#ifdef HAVE_purify + bool is_fake; /* Mark that this is a fake relay log info structure */ +#endif + /* Original log name and position of the group we're currently executing (whose coordinates are group_relay_log_name/pos in the relay log) |