mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
do not use bulk insert tree code if ``myisam_bulk_insert_tree_size'' is too small
This commit is contained in:
parent
6e7a37f520
commit
44d91e0a1f
2 changed files with 6 additions and 3 deletions
|
|
@ -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 *)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue