summaryrefslogtreecommitdiff
path: root/sql/ha_myisam.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-04-08 20:41:00 +0200
committerunknown <serg@serg.mylan>2004-04-08 20:41:00 +0200
commite51447b1430e854fa0df1f37821e722cdb65d2bb (patch)
tree39dfdb44a3e709e59b9420faa6786345754a0ff5 /sql/ha_myisam.cc
parent10e15762b8e38ae09d89e6489de6f2fe68cfd85e (diff)
downloadmariadb-git-e51447b1430e854fa0df1f37821e722cdb65d2bb.tar.gz
always call start_bulk_insert, clarify this behaviour in comment block
change 10 to a #define'd constant myisam/myisamdef.h: use a constant with a difficult-to-type name instead of two-digit number :) sql/ha_myisam.cc: use a constant with a difficult-to-type name instead of two-digit number :) sql/sql_insert.cc: always call start_bulk_insert (it performs all checks itself) removed spurious semicolon at the end of the "if" :) added a clarifying comment
Diffstat (limited to 'sql/ha_myisam.cc')
-rw-r--r--sql/ha_myisam.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_myisam.cc b/sql/ha_myisam.cc
index ca264f500a6..b9d6cec38aa 100644
--- a/sql/ha_myisam.cc
+++ b/sql/ha_myisam.cc
@@ -868,7 +868,7 @@ void ha_myisam::start_bulk_insert(ha_rows rows)
ulong size= min(thd->variables.read_buff_size, table->avg_row_length*rows);
/* don't enable row cache if too few rows */
- if (!rows && rows > 10)
+ if (!rows && rows > MI_MIN_ROWS_TO_USE_WRITE_CACHE)
mi_extra(file, HA_EXTRA_WRITE_CACHE, (void*) &size);
can_enable_indexes= (file->s->state.key_map ==