diff options
author | unknown <msvensson@pilot.mysql.com> | 2007-02-06 14:44:05 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.mysql.com> | 2007-02-06 14:44:05 +0100 |
commit | 31aee856d83684d4f53e6037d02e1240f694e7cb (patch) | |
tree | b6759c4bcd7a2db701145b582e202997ba869824 /sql/mysqld.cc | |
parent | b93d81a8d10c7a0e03ca3f114ab1ad8066465293 (diff) | |
parent | 4660f6d5ef3381f1e0981268308fb14796707a4f (diff) | |
download | mariadb-git-31aee856d83684d4f53e6037d02e1240f694e7cb.tar.gz |
Merge 192.168.0.10:mysql/mysql-4.1-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint
mysys/default.c:
Auto merged
sql/mysqld.cc:
Auto merged
sql/sql_prepare.cc:
Auto merged
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 2c84ca94c3c..460bf2e7308 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -355,6 +355,7 @@ ulong my_bind_addr; /* the address we bind to */ volatile ulong cached_thread_count= 0; double log_10[32]; /* 10 potences */ +double log_01[32]; time_t start_time; char mysql_home[FN_REFLEN], pidfile_name[FN_REFLEN], system_time_zone[30]; @@ -3608,10 +3609,9 @@ static bool read_init_file(char *file_name) #ifndef EMBEDDED_LIBRARY static void create_new_thread(THD *thd) { + NET *net=&thd->net; DBUG_ENTER("create_new_thread"); - NET *net=&thd->net; // For easy ref - net->read_timeout = (uint) connect_timeout; if (protocol_version > 9) net->return_errno=1; @@ -3906,12 +3906,7 @@ extern "C" pthread_handler_decl(handle_connections_sockets, } if (sock == unix_sock) thd->host=(char*) my_localhost; -#ifdef __WIN__ - /* Set default wait_timeout */ - ulong wait_timeout= global_system_variables.net_wait_timeout * 1000; - (void) setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&wait_timeout, - sizeof(wait_timeout)); -#endif + create_new_thread(thd); } |