Simplified away CONNECT::extra_port

Part of MDEV-19515 - Improve connect speed
This commit is contained in:
Sergey Vojtovich 2019-05-12 02:55:57 +04:00
parent c90c769807
commit 7192d7b700
5 changed files with 0 additions and 8 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -3059,7 +3059,6 @@ public:
uint8 password; /* 0, 1 or 2 */
uint8 failed_com_change_user;
bool slave_thread;
bool extra_port; /* If extra connection */
bool no_errors;
/**

View File

@ -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);

View File

@ -35,7 +35,6 @@ public:
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 @@ public:
CONNECT()
:vio(0), scheduler(thread_scheduler), thread_id(0), real_id(0),
extra_port(0),
thread_count_incremented(0), prior_thr_create_utime(0)
{
};