diff options
author | unknown <monty@mashka.mysql.fi> | 2002-12-16 17:28:53 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2002-12-16 17:28:53 +0200 |
commit | c82d6fddb94d0d69a05e846f2431ce25f9a21663 (patch) | |
tree | e57ecece948743e7e5ec3f849d5a58fe96576d77 /sql/ha_myisam.cc | |
parent | 68b583d88b186c4384571550a2564543bc1bf840 (diff) | |
download | mariadb-git-c82d6fddb94d0d69a05e846f2431ce25f9a21663.tar.gz |
Use delayed create index for LOAD DATA INFILE, INSERT ... SELECT and CREATE ... SELECT
(Accidently disabled by a recent push)
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r-- | sql/ha_myisam.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc index 797fe97ea74..0a419879e3a 100644 --- a/sql/ha_myisam.cc +++ b/sql/ha_myisam.cc @@ -689,7 +689,7 @@ void ha_myisam::deactivate_non_unique_index(ha_rows rows) we don't want to update the key statistics based of only a few rows. */ if (file->state->records == 0 && - rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT) + (!rows || rows >= MI_MIN_ROWS_TO_USE_BULK_INSERT)) mi_disable_non_unique_index(file,rows); else { |