mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Bug #30389: connection_id() always return 0 in embedded server
Initialize thd->variables.pseudo_thread_id when a new embedded thd is created.
This commit is contained in:
@ -1008,6 +1008,11 @@ void prepare_new_connection_state(THD* thd)
|
||||
if (thd->client_capabilities & CLIENT_COMPRESS)
|
||||
thd->net.compress=1; // Use compression
|
||||
|
||||
/*
|
||||
Much of this is duplicated in create_embedded_thd() for the
|
||||
embedded server library.
|
||||
TODO: refactor this to avoid code duplication there
|
||||
*/
|
||||
thd->version= refresh_version;
|
||||
thd->proc_info= 0;
|
||||
thd->command= COM_SLEEP;
|
||||
|
Reference in New Issue
Block a user