From e6dad7043682a140ed907b3dd5a79904603fde33 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 27 Feb 2003 17:35:51 +0200 Subject: Added detection if pthread_attr_getstacksize() exists Fixed bug in RAND() usage in mysqlbinlog configure.in: Added detection if pthread_attr_getstacksize() exists include/thr_lock.h: Fixed wrong comment sql/log_event.cc: Fixed bug in RAND() usage in mysqlbinlog sql/mysqld.cc: Portablity fix sql/repl_failsafe.cc: Set host_or_ip for system threads (to make other code simpler) sql/slave.cc: Set host_or_ip for system threads (to make other code simpler) sql/sql_class.cc: Set host_or_ip for system threads (to make other code simpler) sql/sql_insert.cc: Set host_or_ip for system threads (to make other code simpler) sql/sql_show.cc: Set host_or_ip for system threads (to make other code simpler) --- sql/slave.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/slave.cc') diff --git a/sql/slave.cc b/sql/slave.cc index 64d54be113e..efab5b4c6b9 100644 --- a/sql/slave.cc +++ b/sql/slave.cc @@ -1783,6 +1783,7 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type) { DBUG_ENTER("init_slave_thread"); 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; @@ -1790,7 +1791,6 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type) thd->priv_user = 0; thd->slave_thread = 1; thd->options = (((opt_log_slave_updates) ? OPTION_BIN_LOG:0) | OPTION_AUTO_IS_NULL) ; - thd->system_thread = 1; thd->client_capabilities = CLIENT_LOCAL_FILES; thd->real_id=pthread_self(); pthread_mutex_lock(&LOCK_thread_count); -- cgit v1.2.1