diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2014-07-09 13:09:41 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2014-07-09 13:09:41 +0400 |
commit | c16c3b9e47d805821ff0a6b3c317c379b5d25c4d (patch) | |
tree | 47fed1facc90880a75abc9c109a34025941fdf18 /sql/filesort.cc | |
parent | 16779f6069fbd7d4016e9b148174c48b72f1ac70 (diff) | |
download | mariadb-git-c16c3b9e47d805821ff0a6b3c317c379b5d25c4d.tar.gz |
MDEV-6430: It is impossible to see if "filesort with small limit" optimization was used
- Add a Sort_priority_queue_sorts status variable.
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r-- | sql/filesort.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc index e08d1812c23..737165fc6d1 100644 --- a/sql/filesort.cc +++ b/sql/filesort.cc @@ -226,6 +226,7 @@ ha_rows filesort(THD *thd, TABLE *table, SORT_FIELD *sortorder, uint s_length, { DBUG_PRINT("info", ("filesort PQ is applicable")); thd->query_plan_flags|= QPLAN_FILESORT_PRIORITY_QUEUE; + status_var_increment(thd->status_var.filesort_pq_sorts_); const size_t compare_length= param.sort_length; if (pq.init(param.max_rows, true, // max_at_top |