diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2015-06-19 15:04:58 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2015-06-19 15:06:34 +0400 |
commit | 2bc6e29afeea374aa0ef4bc36c7a7b649c20d959 (patch) | |
tree | 194e2e20889b64f1a4e9299484d47ee3ed1174c3 /sql/sql_analyze_stmt.h | |
parent | 360176f397c08392589b75da62e91c7e79c7c367 (diff) | |
download | mariadb-git-2bc6e29afeea374aa0ef4bc36c7a7b649c20d959.tar.gz |
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.
Diffstat (limited to 'sql/sql_analyze_stmt.h')
-rw-r--r-- | sql/sql_analyze_stmt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_analyze_stmt.h b/sql/sql_analyze_stmt.h index 3086d070f9a..9e8191c0947 100644 --- a/sql/sql_analyze_stmt.h +++ b/sql/sql_analyze_stmt.h @@ -396,7 +396,7 @@ public: @return Tracker object to be used with filesort */ - Filesort_tracker *report_sorting(); + Filesort_tracker *report_sorting(THD *thd); friend class Iterator; /*************** Statistics retrieval interface ***************/ |