diff options
author | monty@mysql.com <> | 2004-03-16 13:51:35 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2004-03-16 13:51:35 +0200 |
commit | dcf5ba1c95e8012c9e4dcead01286973cc925cf8 (patch) | |
tree | 0443cc57cf30a008bd9edcbfcdd92281c191ebff /include/my_tree.h | |
parent | 325f6615254c871d71d9d71bb5910a61d9a61ea2 (diff) | |
download | mariadb-git-dcf5ba1c95e8012c9e4dcead01286973cc925cf8.tar.gz |
Increase max size of number of elements in key. This fixed a bug when using count(DISTINCT) with lot of distinct values and big 'max_heap_table_size'
Diffstat (limited to 'include/my_tree.h')
-rw-r--r-- | include/my_tree.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/my_tree.h b/include/my_tree.h index 7cc7c615ba6..6aec50215ca 100644 --- a/include/my_tree.h +++ b/include/my_tree.h @@ -20,7 +20,9 @@ extern "C" { #endif -#define MAX_TREE_HIGHT 40 /* = max 1048576 leafs in tree */ +/* Worst case tree is half full. This gives use 2^(MAX_TREE_HIGHT/2) leafs */ +#define MAX_TREE_HIGHT 64 + #define ELEMENT_KEY(tree,element)\ (tree->offset_to_key ? (void*)((byte*) element+tree->offset_to_key) :\ *((void**) (element+1))) |