Commit b4da2fb0 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0

parents 5c94a164 00ae775a
This diff is collapsed.
File mode changed from 100755 to 100644
...@@ -815,7 +815,7 @@ int _mi_init_bulk_insert(MI_INFO *info) ...@@ -815,7 +815,7 @@ int _mi_init_bulk_insert(MI_INFO *info)
} }
} }
if (!num_keys) if (num_keys==0 || num_keys>myisam_bulk_insert_tree_size)
return 0; return 0;
info->bulk_insert=(TREE *) info->bulk_insert=(TREE *)
......
...@@ -2934,7 +2934,7 @@ CHANGEABLE_VAR changeable_vars[] = { ...@@ -2934,7 +2934,7 @@ CHANGEABLE_VAR changeable_vars[] = {
{ "max_write_lock_count", (long*) &max_write_lock_count, { "max_write_lock_count", (long*) &max_write_lock_count,
~0L, 1, ~0L, 0, 1 }, ~0L, 1, ~0L, 0, 1 },
{ "myisam_bulk_insert_tree_size", (long*) &myisam_bulk_insert_tree_size, { "myisam_bulk_insert_tree_size", (long*) &myisam_bulk_insert_tree_size,
8192*1024, 4, ~0L, 0, 1 }, 8192*1024, 0, ~0L, 0, 1 },
{ "myisam_block_size", (long*) &opt_myisam_block_size, { "myisam_block_size", (long*) &opt_myisam_block_size,
MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH, MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH,
0, MI_MIN_KEY_BLOCK_LENGTH }, 0, MI_MIN_KEY_BLOCK_LENGTH },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment