summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorjoerg@trift2. <>2007-06-07 23:05:18 +0200
committerjoerg@trift2. <>2007-06-07 23:05:18 +0200
commitab64b2f8f37d7e294c867cb4c346f36e70a0fb88 (patch)
tree65e7173555675326d0b8627b01f103e7220a9856 /libmysqld
parent0d84c3f710fa5b0226c4d875c523576160074f49 (diff)
downloadmariadb-git-ab64b2f8f37d7e294c867cb4c346f36e70a0fb88.tar.gz
Do not use the "thd" pointer to identify a thread in the embedded lib,
but rather use the "thread_id" counter. Fixes bug#27078: Compile error: lib_sql.cc cast from 'THD*' to 'pthread_t' loses precision
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 9ee8d48eec4..92b7b10f0c0 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -540,7 +540,7 @@ void *create_embedded_thd(int client_flag)
thd->set_time();
thd->init_for_queries();
thd->client_capabilities= client_flag;
- thd->real_id= (pthread_t) thd;
+ thd->real_id= thd->thread_id;
thd->db= NULL;
thd->db_length= 0;