diff options
Diffstat (limited to 'libmysqld/lib_sql.cc')
-rw-r--r-- | libmysqld/lib_sql.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index bcb45aefbfb..7855a5f2a73 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -667,8 +667,7 @@ void init_embedded_mysql(MYSQL *mysql, int client_flag) */ void *create_embedded_thd(int client_flag) { - THD * thd= new THD; - thd->thread_id= thd->variables.pseudo_thread_id= next_thread_id(); + THD * thd= new THD(next_thread_id()); thd->thread_stack= (char*) &thd; if (thd->store_globals()) |