From efb61c12a929ae176b495e95d8995d9cac649b2d Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Sun, 12 May 2019 11:15:53 +0400 Subject: Simplified away CONNECT::real_id It was wrong anyway, as it may not get updated by the time created thread reads it. And it was 0 for cached threads. Part of MDEV-19515 - Improve connect speed --- sql/sql_connect.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sql/sql_connect.h') diff --git a/sql/sql_connect.h b/sql/sql_connect.h index a46fbdfac60..60c6bd5497d 100644 --- a/sql/sql_connect.h +++ b/sql/sql_connect.h @@ -34,14 +34,13 @@ public: Vio *vio; /* Copied to THD with my_net_init() */ scheduler_functions *scheduler; my_thread_id thread_id; - pthread_t real_id; /* Own variables */ bool thread_count_incremented; ulonglong prior_thr_create_utime; CONNECT() - :vio(0), scheduler(thread_scheduler), thread_id(0), real_id(0), + :vio(0), scheduler(thread_scheduler), thread_id(0), thread_count_incremented(0), prior_thr_create_utime(0) { }; -- cgit v1.2.1