summaryrefslogtreecommitdiff
path: root/sql/threadpool_win.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2019-05-17 00:38:35 +0400
committerSergey Vojtovich <svoj@mariadb.org>2019-05-21 17:55:09 +0400
commitce30c994781aa78a3cf3f028deefaf059f20f108 (patch)
treec5464adcd163363ee4b36eaba7fa69305020ae07 /sql/threadpool_win.cc
parentefb61c12a929ae176b495e95d8995d9cac649b2d (diff)
downloadmariadb-git-ce30c994781aa78a3cf3f028deefaf059f20f108.tar.gz
Moved vio allocation to connection thread
Part of MDEV-19515 - Improve connect speed
Diffstat (limited to 'sql/threadpool_win.cc')
-rw-r--r--sql/threadpool_win.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc
index 67a8e783208..5c12d53ab0e 100644
--- a/sql/threadpool_win.cc
+++ b/sql/threadpool_win.cc
@@ -167,15 +167,14 @@ int TP_connection_win::init()
{
memset(&overlapped, 0, sizeof(OVERLAPPED));
- Vio *vio = connect->vio;
- switch ((vio_type = vio->type))
+ switch ((vio_type = connect->vio_type))
{
case VIO_TYPE_SSL:
case VIO_TYPE_TCPIP:
- handle= (HANDLE)mysql_socket_getfd(vio->mysql_socket);
+ handle= (HANDLE) mysql_socket_getfd(connect->sock);
break;
case VIO_TYPE_NAMEDPIPE:
- handle= (HANDLE)vio->hPipe;
+ handle= connect->pipe;
break;
default:
abort();