do not use bulk insert tree code if ``myisam_bulk_insert_tree_size'' is too small

This commit is contained in:
unknown 2002-06-14 13:20:02 +00:00
commit 44d91e0a1f
2 changed files with 6 additions and 3 deletions

View file

@ -821,7 +821,8 @@ int _mi_init_bulk_insert(MI_INFO *info)
}
}
if (num_keys==0 || num_keys>myisam_bulk_insert_tree_size)
if (num_keys==0 ||
num_keys * MI_MIN_SIZE_BULK_INSERT_TREE > myisam_bulk_insert_tree_size)
return 0;
info->bulk_insert=(TREE *)