mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03: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:
@ -156,7 +156,7 @@ int Explain_query::send_explain(THD *thd)
|
||||
select_result *result;
|
||||
LEX *lex= thd->lex;
|
||||
|
||||
if (!(result= new (thd->mem_root) select_send()) ||
|
||||
if (!(result= new (thd->mem_root) select_send(thd)) ||
|
||||
thd->send_explain_fields(result, lex->describe, lex->analyze_stmt))
|
||||
return 1;
|
||||
|
||||
|
Reference in New Issue
Block a user