diff options
author | monty@mashka.mysql.fi <> | 2002-11-20 22:57:42 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-11-20 22:57:42 +0200 |
commit | dd1b7e0c84a0f4b07dc8194d2c1721a6db01f297 (patch) | |
tree | 20fa2d40e2ebe71340f3071410632316d7143bdf /myisam | |
parent | acf4a7f8aa6e0dfa476e31ac4e7144395a65042e (diff) | |
parent | e65ddf3fc36e086c3209835584bb71a5abc73247 (diff) | |
download | mariadb-git-dd1b7e0c84a0f4b07dc8194d2c1721a6db01f297.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++); |