summaryrefslogtreecommitdiffstats
path: root/sql/uniques.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sql/uniques.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/uniques.h b/sql/uniques.h
index 7e12a391..ecc49794 100644
--- a/sql/uniques.h
+++ b/sql/uniques.h
@@ -75,10 +75,10 @@ public:
inline static double get_search_cost(ulonglong tree_elems,
double compare_factor)
{
- return log((double) tree_elems) / (compare_factor * M_LN2);
+ return log((double) tree_elems) * compare_factor / M_LN2;
}
- static double get_use_cost(uint *buffer, size_t nkeys, uint key_size,
+ static double get_use_cost(THD *thd, uint *buffer, size_t nkeys, uint key_size,
size_t max_in_memory_size, double compare_factor,
bool intersect_fl, bool *in_memory);
inline static int get_cost_calc_buff_size(size_t nkeys, uint key_size,