1
0
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:
tsmith@ramayana.hindu.god
2007-08-27 14:31:27 -06:00
parent c0fd09224b
commit 2c44def1ee
5 changed files with 33 additions and 0 deletions

View File

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