Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7192d7b7
Commit
7192d7b7
authored
May 12, 2019
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified away CONNECT::extra_port
Part of MDEV-19515 - Improve connect speed
parent
c90c7698
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
8 deletions
+0
-8
sql/mysqld.cc
sql/mysqld.cc
+0
-3
sql/sql_class.cc
sql/sql_class.cc
+0
-1
sql/sql_class.h
sql/sql_class.h
+0
-1
sql/sql_connect.cc
sql/sql_connect.cc
+0
-1
sql/sql_connect.h
sql/sql_connect.h
+0
-2
No files found.
sql/mysqld.cc
View file @
7192d7b7
...
...
@@ -6365,10 +6365,7 @@ void handle_accepted_socket(MYSQL_SOCKET new_sock, MYSQL_SOCKET sock)
}
if
(
mysql_socket_getfd
(
sock
)
==
mysql_socket_getfd
(
extra_ip_sock
))
{
connect
->
extra_port
=
1
;
connect
->
scheduler
=
extra_thread_scheduler
;
}
create_new_thread
(
connect
);
}
...
...
sql/sql_class.cc
View file @
7192d7b7
...
...
@@ -726,7 +726,6 @@ THD::THD(my_thread_id id, bool is_wsrep_applier)
event_scheduler
.
data
=
0
;
event_scheduler
.
m_psi
=
0
;
skip_wait_timeout
=
false
;
extra_port
=
0
;
catalog
=
(
char
*
)
"std"
;
// the only catalog we have for now
main_security_ctx
.
init
();
security_ctx
=
&
main_security_ctx
;
...
...
sql/sql_class.h
View file @
7192d7b7
...
...
@@ -3059,7 +3059,6 @@ class THD: public THD_count, /* this must be first */
uint8
password
;
/* 0, 1 or 2 */
uint8
failed_com_change_user
;
bool
slave_thread
;
bool
extra_port
;
/* If extra connection */
bool
no_errors
;
/**
...
...
sql/sql_connect.cc
View file @
7192d7b7
...
...
@@ -1521,7 +1521,6 @@ THD *CONNECT::create_thd(THD *thd)
thd
->
net
.
vio
->
type
==
VIO_TYPE_SOCKET
?
my_localhost
:
0
;
thd
->
extra_port
=
extra_port
;
thd
->
scheduler
=
scheduler
;
thd
->
real_id
=
real_id
;
DBUG_RETURN
(
thd
);
...
...
sql/sql_connect.h
View file @
7192d7b7
...
...
@@ -35,7 +35,6 @@ class CONNECT : public ilink {
scheduler_functions
*
scheduler
;
my_thread_id
thread_id
;
pthread_t
real_id
;
bool
extra_port
;
/* Own variables */
bool
thread_count_incremented
;
...
...
@@ -43,7 +42,6 @@ class CONNECT : public ilink {
CONNECT
()
:
vio
(
0
),
scheduler
(
thread_scheduler
),
thread_id
(
0
),
real_id
(
0
),
extra_port
(
0
),
thread_count_incremented
(
0
),
prior_thr_create_utime
(
0
)
{
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment