1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

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.
This commit is contained in:
Sergey Vojtovich
2015-06-18 18:01:56 +04:00
parent b85e5efca3
commit 360176f397
8 changed files with 36 additions and 36 deletions

View File

@ -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)
{