diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-17 00:38:35 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-21 17:55:09 +0400 |
commit | ce30c994781aa78a3cf3f028deefaf059f20f108 (patch) | |
tree | c5464adcd163363ee4b36eaba7fa69305020ae07 /sql/threadpool_generic.cc | |
parent | efb61c12a929ae176b495e95d8995d9cac649b2d (diff) | |
download | mariadb-git-ce30c994781aa78a3cf3f028deefaf059f20f108.tar.gz |
Moved vio allocation to connection thread
Part of MDEV-19515 - Improve connect speed
Diffstat (limited to 'sql/threadpool_generic.cc')
-rw-r--r-- | sql/threadpool_generic.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sql/threadpool_generic.cc b/sql/threadpool_generic.cc index e37fd6f0cf4..74c359a4153 100644 --- a/sql/threadpool_generic.cc +++ b/sql/threadpool_generic.cc @@ -1433,14 +1433,13 @@ TP_connection_generic::TP_connection_generic(CONNECT *c): , overlapped() #endif { - DBUG_ASSERT(c->vio); + DBUG_ASSERT(c->vio_type != VIO_CLOSED); #ifdef _WIN32 - vio_type= c->vio->type; - fd= (vio_type == VIO_TYPE_NAMEDPIPE) ? - c->vio->hPipe: (TP_file_handle)mysql_socket_getfd(c->vio->mysql_socket); + fd= (c->vio_type == VIO_TYPE_NAMEDPIPE) ? + c->pipe: (TP_file_handle) mysql_socket_getfd(c->sock); #else - fd= mysql_socket_getfd(c->vio->mysql_socket); + fd= mysql_socket_getfd(c->sock); #endif /* Assign connection to a group. */ |