Commit 1b454e34 authored by V Narayanan's avatar V Narayanan

Bug#43572 Handle failures from hash_init

The merge from http://lists.mysql.com/commits/76678 caused the 
growth_size parameter to the my_init_dynamic_array function to
be ignored. This patch corrects the problem.
parent 2f935906
...@@ -89,7 +89,7 @@ _my_hash_init(HASH *hash, uint growth_size, CHARSET_INFO *charset, ...@@ -89,7 +89,7 @@ _my_hash_init(HASH *hash, uint growth_size, CHARSET_INFO *charset,
hash->flags=flags; hash->flags=flags;
hash->charset=charset; hash->charset=charset;
DBUG_RETURN(my_init_dynamic_array_ci(&hash->array, DBUG_RETURN(my_init_dynamic_array_ci(&hash->array,
sizeof(HASH_LINK), size, 0)); sizeof(HASH_LINK), size, growth_size));
} }
......
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