summaryrefslogtreecommitdiff
path: root/sql/sql_profile.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2015-06-18 18:01:56 +0400
committerSergey Vojtovich <svoj@mariadb.org>2015-06-19 15:06:34 +0400
commit360176f397c08392589b75da62e91c7e79c7c367 (patch)
treecf3a43f05572072f6162f7b0a2a13d1bb394a816 /sql/sql_profile.cc
parentb85e5efca3032c73b86223ba8799d3be98e5bea9 (diff)
downloadmariadb-git-360176f397c08392589b75da62e91c7e79c7c367.tar.gz
MDEV-7943 - pthread_getspecific() takes 0.76% in OLTP RO
Pass THD to Item_field (and all derivatives) constructors. This reduces number of pthread_getspecific() calls from 322 to 292.
Diffstat (limited to 'sql/sql_profile.cc')
-rw-r--r--sql/sql_profile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_profile.cc b/sql/sql_profile.cc
index 9fa4d646fa1..a21cca5449a 100644
--- a/sql/sql_profile.cc
+++ b/sql/sql_profile.cc
@@ -121,7 +121,7 @@ int make_profile_table_for_show(THD *thd, ST_SCHEMA_TABLE *schema_table)
continue;
field_info= &schema_table->fields_info[i];
- Item_field *field= new Item_field(context,
+ Item_field *field= new Item_field(thd, context,
NullS, NullS, field_info->field_name);
if (field)
{