From 54689e1d5c358851c93d928c8ec453c929921f42 Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Thu, 19 Nov 2015 16:50:09 +0400 Subject: MDEV-8715 - Obsolete sql_alloc() in favor of THD::alloc() and thd_alloc() The following left in semi-improved state to keep patch size reasonable: - Field operator new: left thd_alloc(current_thd) - Sql_alloc operator new: left thd_alloc(thd_get_current_thd()) - Item_args constructors: left thd_alloc(thd) - Item_func_interval::fix_length_and_dec(): no THD arg, have to call current_thd - Item_func_dyncol_exists::val_int(): same - Item_dyncol_get::val_str(): same - Item_dyncol_get::val_int(): same - Item_dyncol_get::val_real(): same - Item_dyncol_get::val_decimal(): same - Item_singlerow_subselect::fix_length_and_dec(): same --- sql/threadpool_common.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/threadpool_common.cc') diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index 9e0cb07b86c..97352e401d4 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -87,7 +87,6 @@ struct Worker_thread_context #endif pthread_setspecific(THR_KEY_mysys,mysys_var); pthread_setspecific(THR_THD, 0); - pthread_setspecific(THR_MALLOC, 0); } }; -- cgit v1.2.1