diff options
author | unknown <monty@mashka.mysql.fi> | 2002-11-20 22:57:42 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-11-20 22:57:42 +0200 |
commit | 910849ccd1f5f24e90de0f48091a4c6981c71126 (patch) | |
tree | 20fa2d40e2ebe71340f3071410632316d7143bdf /myisam | |
parent | 0c3106f964bcd687e2ccef01d304749508b8d7e2 (diff) | |
parent | 9b9546edbc095e061167588f672549103627bf98 (diff) | |
download | mariadb-git-910849ccd1f5f24e90de0f48091a4c6981c71126.tar.gz |
Merge work:/my/mysql-4.0 into mashka.mysql.fi:/home/my/mysql-4.0
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/myisam/mi_write.c b/myisam/mi_write.c index cfacd0bc4d5..70a1bea26bb 100644 --- a/myisam/mi_write.c +++ b/myisam/mi_write.c @@ -842,8 +842,9 @@ int _mi_init_bulk_insert(MI_INFO *info, ulong cache_size) { params->info=info; params->keynr=i; + /* Only allocate a 16'th of the buffer at a time */ init_tree(&info->bulk_insert[i], - cache_size / num_keys / 4 + 10, + cache_size / num_keys / 16 + 10, cache_size / num_keys, 0, (qsort_cmp2)keys_compare, 0, (tree_element_free) keys_free, (void *)params++); |