Below is the list of changes that have just been committed into a local
4.1 repository of joerg. When joerg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet@stripped, 2007-06-07 23:05:18+02:00, joerg@trift2. +1 -0
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
libmysqld/lib_sql.cc@stripped, 2007-06-07 23:05:16+02:00, joerg@trift2. +1 -1
Avoid casting a pointer to a (possibly) int, which will not compile on some platforms:
Do not use the "thd" pointer to identify a thread in the embedded lib,
but rather use the "thread_id" counter.
Patch is proposed by Monty. Fixes bug#27078.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: joerg
# Host: trift2.
# Root: /MySQL/M41/clone-4.1
--- 1.138/libmysqld/lib_sql.cc 2007-03-05 08:35:02 +01:00
+++ 1.139/libmysqld/lib_sql.cc 2007-06-07 23:05:16 +02:00
@@ -540,7 +540,7 @@
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;
| Thread |
|---|
| • bk commit into 4.1 tree (joerg:1.2662) BUG#27078 | Joerg Bruehe | 8 Jun |