mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup: prepare "update_handler" for WITHOUT OVERLAPS
* rename to a generic name * move remaning initializations from query exec to prepare time * simplify/unify key handling in open_table_from_share and delayed * remove dead code * move tests where they belong
This commit is contained in:
@ -968,8 +968,7 @@ update_begin:
|
||||
can_compare_record= records_are_comparable(table);
|
||||
explain->tracker.on_scan_init();
|
||||
|
||||
if (table->versioned(VERS_TIMESTAMP) || table_list->has_period())
|
||||
table->file->prepare_for_insert(1);
|
||||
table->file->prepare_for_insert();
|
||||
|
||||
THD_STAGE_INFO(thd, stage_updating);
|
||||
while (!(error=info.read_record()) && !thd->killed)
|
||||
@ -2028,8 +2027,7 @@ int multi_update::prepare(List<Item> ¬_used_values,
|
||||
{
|
||||
table->read_set= &table->def_read_set;
|
||||
bitmap_union(table->read_set, &table->tmp_set);
|
||||
if (table->versioned(VERS_TIMESTAMP))
|
||||
table->file->prepare_for_insert(1);
|
||||
table->file->prepare_for_insert();
|
||||
}
|
||||
}
|
||||
if (unlikely(error))
|
||||
|
Reference in New Issue
Block a user