summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2002-03-01 19:36:46 -0700
committerunknown <sasha@mysql.sashanet.com>2002-03-01 19:36:46 -0700
commit2c9879ca0cfd319e939835816cd4501b1d097b0a (patch)
treedd5cbc9c1cf52f454bd88e24e1401696ae7da26c /mysys
parent80d375b1566da63bbfcaed6d4ab339ae4add5b04 (diff)
parent1dd4cf0295fcc176ff4ea314afb4ceb8910792ce (diff)
downloadmariadb-git-2c9879ca0cfd319e939835816cd4501b1d097b0a.tar.gz
merged from 3.23 to pull the LOAD DATA INFILE fix as rpl000001 was failing.
Let's hope this did not break anything. Will not push this one until Monty gets back BitKeeper/etc/logging_ok: auto-union Build-tools/Do-all-build-steps: Auto merged Build-tools/Do-compile: Auto merged Build-tools/Do-rpm: Auto merged Docs/manual.texi: Auto merged include/hash.h: Auto merged include/my_sys.h: Auto merged innobase/dict/dict0dict.c: Auto merged mysys/array.c: Auto merged mysys/hash.c: Auto merged mysys/mf_qsort.c: Auto merged sql/sql_base.cc: Auto merged sql/table.cc: Auto merged strings/Makefile.am: Auto merged client/mysql.cc: merged from 3.23 configure.in: merged from 3.23 mysql-test/mysql-test-run.sh: merged from 3.23 sql/mysqld.cc: merged from 3.23 support-files/mysql.spec.sh: merged from 3.23
Diffstat (limited to 'mysys')
-rw-r--r--mysys/array.c8
-rw-r--r--mysys/hash.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/mysys/array.c b/mysys/array.c
index 408747366d3..8bc19b07d4e 100644
--- a/mysys/array.c
+++ b/mysys/array.c
@@ -28,12 +28,12 @@
even if space allocation failed
*/
-my_bool init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
- uint init_alloc, uint alloc_increment)
+my_bool _init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
+ uint init_alloc, uint alloc_increment CALLER_INFO_PROTO)
{
DBUG_ENTER("init_dynamic_array");
if (!alloc_increment)
- {
+ {
alloc_increment=max((8192-MALLOC_OVERHEAD)/element_size,16);
if (init_alloc > 8 && alloc_increment > init_alloc * 2)
alloc_increment=init_alloc*2;
@@ -45,7 +45,7 @@ my_bool init_dynamic_array(DYNAMIC_ARRAY *array, uint element_size,
array->max_element=init_alloc;
array->alloc_increment=alloc_increment;
array->size_of_element=element_size;
- if (!(array->buffer=(char*) my_malloc(element_size*init_alloc,MYF(MY_WME))))
+ if (!(array->buffer=(char*) my_malloc_ci(element_size*init_alloc,MYF(MY_WME))))
{
array->max_element=0;
DBUG_RETURN(TRUE);
diff --git a/mysys/hash.c b/mysys/hash.c
index 0b326ebc508..b3769d1dfb2 100644
--- a/mysys/hash.c
+++ b/mysys/hash.c
@@ -36,15 +36,15 @@ static uint calc_hashnr_caseup(const byte *key,uint length);
static int hashcmp(HASH *hash,HASH_LINK *pos,const byte *key,uint length);
-my_bool hash_init(HASH *hash,uint size,uint key_offset,uint key_length,
+my_bool _hash_init(HASH *hash,uint size,uint key_offset,uint key_length,
hash_get_key get_key,
- void (*free_element)(void*),uint flags)
+ void (*free_element)(void*),uint flags CALLER_INFO_PROTO)
{
DBUG_ENTER("hash_init");
DBUG_PRINT("enter",("hash: %lx size: %d",hash,size));
hash->records=0;
- if (init_dynamic_array(&hash->array,sizeof(HASH_LINK),size,0))
+ if (init_dynamic_array_ci(&hash->array,sizeof(HASH_LINK),size,0))
{
hash->free=0; /* Allow call to hash_free */
DBUG_RETURN(TRUE);