1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Polishing:

1) add support for joinable threads to Thread class;
2) move checking of thread model to Manager from mysqlmanager.cc,
because it is needed only for IM-main process.
This commit is contained in:
anozdrin/alik@booka.
2006-11-21 17:31:03 +03:00
parent 1efc862080
commit ff0325f162
9 changed files with 146 additions and 77 deletions

View File

@ -323,7 +323,7 @@ void Listener::handle_new_mysql_connection(struct st_vio *vio)
Mysql_connection *mysql_connection=
new Mysql_connection(thread_registry, user_map,
vio, ++total_connection_count);
if (mysql_connection == NULL || mysql_connection->start_detached())
if (mysql_connection == NULL || mysql_connection->start(Thread::DETACHED))
{
log_error("handle_one_mysql_connection() failed");
delete mysql_connection;