diff options
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 6ac3c52fe40..427edde2f4b 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -841,14 +841,11 @@ void ha_myisam::deactivate_non_unique_index(ha_rows rows) if (file->state->records == 0 && (!rows || rows >= MI_MIN_ROWS_TO_DISABLE_INDEXES)) mi_disable_non_unique_index(file,rows); - else - if (!file->bulk_insert && - (!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT)) - { + else if (!file->bulk_insert && + (!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT)) mi_init_bulk_insert(file, current_thd->variables.bulk_insert_buff_size, rows); - } } } enable_activate_all_index=1; |