diff options
author | V Narayanan <v.narayanan@sun.com> | 2009-06-22 16:40:34 +0530 |
---|---|---|
committer | V Narayanan <v.narayanan@sun.com> | 2009-06-22 16:40:34 +0530 |
commit | b0064fa5a96502da95132e5e19660057e260f1b5 (patch) | |
tree | 90cbb16f8547d47dce2833480e2bf9f950d26b8c /mysys | |
parent | 5ce0b41fb247c004da35f3eaa49f38cb395d00dd (diff) | |
download | mariadb-git-b0064fa5a96502da95132e5e19660057e260f1b5.tar.gz |
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.
mysys/hash.c:
Bug#43572 Handle failures from hash_init
Replacing the last parameter to my_init_dynamic_array with
growth_size.
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/hash.c b/mysys/hash.c index 2490a6c2019..63933abb085 100644 --- a/mysys/hash.c +++ b/mysys/hash.c @@ -89,7 +89,7 @@ _my_hash_init(HASH *hash, uint growth_size, CHARSET_INFO *charset, hash->flags=flags; hash->charset=charset; DBUG_RETURN(my_init_dynamic_array_ci(&hash->array, - sizeof(HASH_LINK), size, 0)); + sizeof(HASH_LINK), size, growth_size)); } |