mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
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
This commit is contained in:
@ -1522,6 +1522,6 @@ THD *CONNECT::create_thd(THD *thd)
|
||||
my_localhost : 0;
|
||||
|
||||
thd->scheduler= scheduler;
|
||||
thd->real_id= real_id;
|
||||
thd->real_id= pthread_self(); /* Duplicates THD::store_globals() setting. */
|
||||
DBUG_RETURN(thd);
|
||||
}
|
||||
|
Reference in New Issue
Block a user