Commit 0dd37e87 authored by Sergey Petrunya's avatar Sergey Petrunya

Merge: fix valgrind failure in Unique class

parents df0817c0 58c0fdc9
......@@ -2990,7 +2990,7 @@ class Unique :public Sql_alloc
ulonglong max_in_memory_size)
{
register ulonglong max_elems_in_tree=
(1 + max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size));
max_in_memory_size / ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size);
return (int) (sizeof(uint)*(1 + nkeys/max_elems_in_tree));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment