diff options
author | Sergei Golubchik <serg@mariadb.org> | 2020-03-05 19:19:57 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2020-03-31 17:42:34 +0200 |
commit | 0515577d128318e1b62511846d88d0c56226168d (patch) | |
tree | 6339b3083879f29ce04fd77f10b7c4d6050e49e9 /sql/sql_delete.cc | |
parent | 045510cb92448ab54ff8832b1947707287975bae (diff) | |
download | mariadb-git-0515577d128318e1b62511846d88d0c56226168d.tar.gz |
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
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r-- | sql/sql_delete.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc index da46a538a28..19eabbb053c 100644 --- a/sql/sql_delete.cc +++ b/sql/sql_delete.cc @@ -753,7 +753,7 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds, if (table->versioned(VERS_TIMESTAMP) || (table_list->has_period() && !portion_of_time_through_update)) - table->file->prepare_for_insert(1); + table->file->prepare_for_insert(); THD_STAGE_INFO(thd, stage_updating); while (likely(!(error=info.read_record())) && likely(!thd->killed) && @@ -1243,7 +1243,7 @@ multi_delete::initialize_tables(JOIN *join) tbl->prepare_for_position(); if (tbl->versioned(VERS_TIMESTAMP)) - tbl->file->prepare_for_insert(1); + tbl->file->prepare_for_insert(); } else if ((tab->type != JT_SYSTEM && tab->type != JT_CONST) && walk == delete_tables) |