summaryrefslogtreecommitdiff
path: root/sql/filesort.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-11-20 02:57:02 +0200
committermonty@donna.mysql.com <>2000-11-20 02:57:02 +0200
commit61fd6baf4b466e52192f68fec8e09aa9cca7ead4 (patch)
treed3f52866508b583c2d4549b66887b4b50aa9fe22 /sql/filesort.cc
parentb31d0768794e964852562c0ba307e6eea35f101b (diff)
downloadmariadb-git-61fd6baf4b466e52192f68fec8e09aa9cca7ead4.tar.gz
Bug fix for NATURAL JOIN, Split manual sections and more statistic variables
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r--sql/filesort.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc
index 220ff69a3e8..115698a9d79 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -716,6 +716,8 @@ static int merge_buffers(SORTPARAM *param, IO_CACHE *from_file,
volatile bool *killed= &current_thd->killed;
DBUG_ENTER("merge_buffers");
+ statistic_increment(filesort_merge_passes, &LOCK_status);
+
count=error=0;
offset=param->sort_length-param->ref_length;
maxcount=(ulong) (param->keys/((uint) (Tb-Fb) +1));