mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
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'
This commit is contained in:
parent
277cf702da
commit
771233cefb
1 changed files with 3 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue