summaryrefslogtreecommitdiff
path: root/mysys/tree.c
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-05-11 15:07:34 -0600
committerunknown <sasha@mysql.sashanet.com>2001-05-11 15:07:34 -0600
commit40f949e91a052b827db80d3974e165af39fca997 (patch)
treec1011c976487f613ded4fa7db34dbff547084d18 /mysys/tree.c
parent2a5a6d50ade3c4772db505ad1cf009da3d6417d8 (diff)
downloadmariadb-git-40f949e91a052b827db80d3974e165af39fca997.tar.gz
use tree for count(distinct) when possible
include/my_tree.h: fixed typo in comment mysys/tree.c: fixed typo in comment sql/item_sum.h: use tree for count distinct when possible
Diffstat (limited to 'mysys/tree.c')
-rw-r--r--mysys/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/tree.c b/mysys/tree.c
index db2b3989b81..e46ff00adad 100644
--- a/mysys/tree.c
+++ b/mysys/tree.c
@@ -84,7 +84,7 @@ void init_tree(TREE *tree, uint default_alloc_size, int size,
((uint) size <= sizeof(void*) || ((uint) size & (sizeof(void*)-1))))
{
tree->offset_to_key=sizeof(TREE_ELEMENT); /* Put key after element */
- /* Fix allocation size so that we don't loose any memory */
+ /* Fix allocation size so that we don't lose any memory */
default_alloc_size/=(sizeof(TREE_ELEMENT)+size);
if (!default_alloc_size)
default_alloc_size=1;