mirror of
https://github.com/MariaDB/server.git
synced 2025-11-06 13:10:12 +03:00
MDEV-7943 - pthread_getspecific() takes 0.76% in OLTP RO
Pass THD to Sort_and_group_tracker::report_sorting(). This reduces number of pthread_getspecific() calls from 292 to 290.
This commit is contained in:
@@ -21058,7 +21058,7 @@ create_sort_index(THD *thd, JOIN *join, ORDER *order,
|
||||
filesort_retval= filesort(thd, table, join->sortorder, length,
|
||||
select, filesort_limit, 0,
|
||||
&examined_rows, &found_rows,
|
||||
join->explain->ops_tracker.report_sorting());
|
||||
join->explain->ops_tracker.report_sorting(thd));
|
||||
table->sort.found_records= filesort_retval;
|
||||
tab->records= found_rows; // For SQL_CALC_ROWS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user