1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Addressed the feedback from the review of Monty on the cumulative patch for

mwl#21.
This commit is contained in:
Igor Babaev
2010-12-19 00:44:39 -08:00
parent 91f950b1c6
commit 65af63b038
6 changed files with 532 additions and 417 deletions

View File

@@ -2998,7 +2998,7 @@ class Unique :public Sql_alloc
bool flush();
uint size;
uint full_size;
uint min_dupl_count;
uint min_dupl_count; /* always 0 for unions, > 0 for intersections */
public:
ulong elements;
@@ -3022,6 +3022,7 @@ public:
bool get(TABLE *table);
/* Cost of searching for an element in the tree */
inline static double get_search_cost(uint tree_elems, uint compare_factor)
{
return log((double) tree_elems) / (compare_factor * M_LN2);