Hi!
>>>>> "Timothy" == Timothy Smith <tim@stripped> writes:
<cut>
Timothy> In every instance but one, write_row() is called with
table-> record[0].
Timothy> I'm not sure why ha_myisam::write_row() would only update the
Timothy> auto_increment counter if buf == table->record[0]. I suppose it
Timothy> could be an optimization for create_myisam_from_heap(), but that
Timothy> seems unlikely. Maybe Monty can explain a bit more.
The check is mainly there because the auto_increment update code only
works with record[0].
As we always uses record[0] for write_row, except in sql_acl.cc,
(where we don't use auto_increment keys), this restriction isn't a
problem.
Regards,
Monty