summaryrefslogtreecommitdiff
path: root/sql/multi_range_read.cc
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2011-10-18 13:44:12 +0300
committerunknown <sanja@askmonty.org>2011-10-18 13:44:12 +0300
commit255c04aed8b4159ac8402bc80bab3771c0236d40 (patch)
tree8d947e1a98f7f3eb9dce22ee44e49276d357ea4f /sql/multi_range_read.cc
parent9f6e24a05a32c147f292cd6260d63a31cb8cd9db (diff)
downloadmariadb-git-255c04aed8b4159ac8402bc80bab3771c0236d40.tar.gz
Compiler warning about assigned but not used variables fixed.
Diffstat (limited to 'sql/multi_range_read.cc')
-rw-r--r--sql/multi_range_read.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/multi_range_read.cc b/sql/multi_range_read.cc
index 08e91559fc6..6e11fe5efa0 100644
--- a/sql/multi_range_read.cc
+++ b/sql/multi_range_read.cc
@@ -1636,7 +1636,8 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags,
uint *buffer_size, COST_VECT *cost)
{
ulong max_buff_entries, elem_size;
- ha_rows rows_in_full_step, rows_in_last_step;
+ ha_rows rows_in_full_step;
+ ha_rows rows_in_last_step;
uint n_full_steps;
double index_read_cost;
@@ -1661,7 +1662,7 @@ bool DsMrr_impl::get_disk_sweep_mrr_cost(uint keynr, ha_rows rows, uint flags,
/* Adjust buffer size if we expect to use only part of the buffer */
if (n_full_steps)
{
- get_sort_and_sweep_cost(table, rows, cost);
+ get_sort_and_sweep_cost(table, rows_in_full_step, cost);
cost->multiply(n_full_steps);
}
else