summaryrefslogtreecommitdiff
path: root/sql/sql_binlog.cc
diff options
context:
space:
mode:
authorunknown <mkindahl@dl145h.mysql.com>2008-02-06 14:44:47 +0100
committerunknown <mkindahl@dl145h.mysql.com>2008-02-06 14:44:47 +0100
commitbe5a46a69b63eebfd4413e43a4f6a7b3c0c0bcd0 (patch)
tree9c6f98a123d4df815f3a539bac1071c063280a06 /sql/sql_binlog.cc
parent6cb9dfed6fb711b550c91f66609f4a34fa74cf78 (diff)
downloadmariadb-git-be5a46a69b63eebfd4413e43a4f6a7b3c0c0bcd0.tar.gz
Patch to eliminate some valgrind warnings in debug printout code.
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/sql_binlog.cc')
-rw-r--r--sql/sql_binlog.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_binlog.cc b/sql/sql_binlog.cc
index 04f408453ea..f1fbe6eb4b7 100644
--- a/sql/sql_binlog.cc
+++ b/sql/sql_binlog.cc
@@ -56,6 +56,9 @@ void mysql_client_binlog_statement(THD* thd)
if (!thd->rli_fake)
{
thd->rli_fake= new Relay_log_info;
+#ifdef HAVE_purify
+ thd->rli_fake->is_fake= TRUE;
+#endif
have_fd_event= FALSE;
}
if (thd->rli_fake && !thd->rli_fake->relay_log.description_event_for_exec)