summaryrefslogtreecommitdiff
path: root/sql/repl_failsafe.cc
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2005-10-14 15:34:52 +0200
committerunknown <guilhem@mysql.com>2005-10-14 15:34:52 +0200
commit5dfd72a038b85670c35270db7d1417dc5e7f3464 (patch)
tree53f7e9af374c43bd67783e388f26d08ee8a79640 /sql/repl_failsafe.cc
parent9cc7d75ea3acf8cf2f2491e8740d48f83cf0c47b (diff)
downloadmariadb-git-5dfd72a038b85670c35270db7d1417dc5e7f3464.tar.gz
fix for Valgrind errors: query_id needs to be inited early (already fixed in 5.0 by Konstantin) and so does client_capabilities (not fixed in 5.0);
because they are used by net_printf() and push_warning(), which can be called if check_connection() fails. sql/mysqld.cc: not needed anymore sql/repl_failsafe.cc: not needed anymore sql/slave.cc: not needed anymore sql/sql_class.cc: query_id needs to be inited early (already fixed in 5.0 by Konstantin) and so does client_capabilities (not fixed in 5.0); because they are used by net_printf() and push_warning(), which may be called if check_connection() fails.
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r--sql/repl_failsafe.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc
index 2d8e8a5bf81..61fd5d9bce4 100644
--- a/sql/repl_failsafe.cc
+++ b/sql/repl_failsafe.cc
@@ -67,7 +67,6 @@ static int init_failsafe_rpl_thread(THD* thd)
*/
thd->system_thread = thd->bootstrap = 1;
thd->host_or_ip= "";
- thd->client_capabilities = 0;
my_net_init(&thd->net, 0);
thd->net.read_timeout = slave_net_timeout;
thd->max_client_packet_length=thd->net.max_packet;