diff options
author | V Narayanan <v.narayanan@sun.com> | 2009-07-12 11:18:53 +0530 |
---|---|---|
committer | V Narayanan <v.narayanan@sun.com> | 2009-07-12 11:18:53 +0530 |
commit | 5a0a258ec6c308cf5667d0b1ef7ecde8afecae94 (patch) | |
tree | 153af40da22e501f87e4a92c3a6117ecb34f61b6 /mysys/my_realloc.c | |
parent | 924c8c5bfbc346de72d27a06fa5d6cb87b471c08 (diff) | |
download | mariadb-git-5a0a258ec6c308cf5667d0b1ef7ecde8afecae94.tar.gz |
Bug#43572 Handle failures from hash_init
This patch is a follow up to http://lists.mysql.com/commits/76678.
When an allocation failure occurs for the buffer in the dynamic
array, an error condition was being set. The dynamic array is
usable even if the memory allocation fails. Since in most cases
the thread can continue to work without any problems the error
condition should not be set here.
This patch adds logic to remove the error condition from being set
when the memory allocation for the buffer in dynamic array fails.
mysys/array.c:
Bug#43572 Handle failures from hash_init
Remove the MY_WME flag from the call to malloc in order to
prevent the error status from being set in the init_dynamic_array
method. Since this memory allocation failure is no longer
fatal this method has been modified to return FALSE
(indicate success) irrespective of array->buffer being
allocated.
Diffstat (limited to 'mysys/my_realloc.c')
0 files changed, 0 insertions, 0 deletions