diff options
author | unknown <guilhem@mysql.com> | 2005-10-14 15:34:52 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2005-10-14 15:34:52 +0200 |
commit | 5dfd72a038b85670c35270db7d1417dc5e7f3464 (patch) | |
tree | 53f7e9af374c43bd67783e388f26d08ee8a79640 /sql/slave.cc | |
parent | 9cc7d75ea3acf8cf2f2491e8740d48f83cf0c47b (diff) | |
download | mariadb-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/slave.cc')
-rw-r--r-- | sql/slave.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/slave.cc b/sql/slave.cc index 2fc4eef0f64..b2862a437bb 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -2617,7 +2617,6 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type) thd->system_thread = (thd_type == SLAVE_THD_SQL) ? SYSTEM_THREAD_SLAVE_SQL : SYSTEM_THREAD_SLAVE_IO; thd->host_or_ip= ""; - thd->client_capabilities = 0; my_net_init(&thd->net, 0); thd->net.read_timeout = slave_net_timeout; thd->master_access= ~(ulong)0; |