summaryrefslogtreecommitdiff
path: root/sql/sql_join_cache.cc
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-02-22 10:38:28 +0200
committerunknown <sanja@montyprogram.com>2012-02-22 10:38:28 +0200
commitc299e027eeddc35e0197ebc70805e0a303a4b135 (patch)
treefbe47b9e9d1fea8c0183950d63894d1774ad8a6a /sql/sql_join_cache.cc
parentc9fc9f73170a8eb16ea968a2ea51b298eb5cdcfc (diff)
downloadmariadb-git-c299e027eeddc35e0197ebc70805e0a303a4b135.tar.gz
Changed names of statistic variables and counting matches instaed of rejected rows.
Diffstat (limited to 'sql/sql_join_cache.cc')
-rw-r--r--sql/sql_join_cache.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/sql/sql_join_cache.cc b/sql/sql_join_cache.cc
index 15b5efbfacb..a960c63e782 100644
--- a/sql/sql_join_cache.cc
+++ b/sql/sql_join_cache.cc
@@ -4026,9 +4026,9 @@ bool bka_skip_index_tuple(range_seq_t rseq, range_id_t range_info)
JOIN_CACHE_BKA *cache= (JOIN_CACHE_BKA *) rseq;
THD *thd= cache->thd();
bool res;
- status_var_increment(thd->status_var.ha_pushed_index_cond_checks);
- if ((res= cache->skip_index_tuple(range_info)))
- status_var_increment(thd->status_var.ha_pushed_index_cond_filtered);
+ status_var_increment(thd->status_var.ha_icp_attempts);
+ if (!(res= cache->skip_index_tuple(range_info)))
+ status_var_increment(thd->status_var.ha_icp_match);
DBUG_RETURN(res);
}
@@ -4505,9 +4505,9 @@ bool bkah_skip_index_tuple(range_seq_t rseq, range_id_t range_info)
JOIN_CACHE_BKAH *cache= (JOIN_CACHE_BKAH *) rseq;
THD *thd= cache->thd();
bool res;
- status_var_increment(thd->status_var.ha_pushed_index_cond_checks);
- if ((res= cache->skip_index_tuple(range_info)))
- status_var_increment(thd->status_var.ha_pushed_index_cond_filtered);
+ status_var_increment(thd->status_var.ha_icp_attempts);
+ if (!(res= cache->skip_index_tuple(range_info)))
+ status_var_increment(thd->status_var.ha_icp_match);
DBUG_RETURN(res);
}