mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 07:05:33 +02:00
MDEV-7943 - pthread_getspecific() takes 0.76% in OLTP RO
Added THD argument to select_result and all derivative classes. This reduces number of pthread_getspecific calls from 796 to 776 per OLTP RO transaction.
This commit is contained in:
parent
8345bc6921
commit
b22959903b
18 changed files with 149 additions and 127 deletions
|
|
@ -3348,15 +3348,17 @@ bool mysql_insert_select_prepare(THD *thd)
|
|||
}
|
||||
|
||||
|
||||
select_insert::select_insert(TABLE_LIST *table_list_par, TABLE *table_par,
|
||||
select_insert::select_insert(THD *thd_arg, TABLE_LIST *table_list_par,
|
||||
TABLE *table_par,
|
||||
List<Item> *fields_par,
|
||||
List<Item> *update_fields,
|
||||
List<Item> *update_values,
|
||||
enum_duplicates duplic,
|
||||
bool ignore_check_option_errors)
|
||||
:table_list(table_list_par), table(table_par), fields(fields_par),
|
||||
autoinc_value_of_last_inserted_row(0),
|
||||
insert_into_view(table_list_par && table_list_par->view != 0)
|
||||
bool ignore_check_option_errors):
|
||||
select_result_interceptor(thd_arg),
|
||||
table_list(table_list_par), table(table_par), fields(fields_par),
|
||||
autoinc_value_of_last_inserted_row(0),
|
||||
insert_into_view(table_list_par && table_list_par->view != 0)
|
||||
{
|
||||
bzero((char*) &info,sizeof(info));
|
||||
info.handle_duplicates= duplic;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue