diff options
Diffstat (limited to 'sql/sql_rename.cc')
-rw-r--r-- | sql/sql_rename.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/sql_rename.cc b/sql/sql_rename.cc index fa0fa3f0ea5..1095bb25d0b 100644 --- a/sql/sql_rename.cc +++ b/sql/sql_rename.cc @@ -30,7 +30,6 @@ #include "sql_base.h" // tdc_remove_table, lock_table_names, #include "sql_handler.h" // mysql_ha_rm_tables #include "sql_statistics.h" -#include "vtmd.h" static TABLE_LIST *rename_tables(THD *thd, TABLE_LIST *table_list, bool skip_error); @@ -298,22 +297,12 @@ do_rename(THD *thd, TABLE_LIST *ren_table, const LEX_CSTRING *new_db, (void) rename_table_in_stat_tables(thd, &ren_table->db, &ren_table->table_name, new_db, &new_alias); - VTMD_rename vtmd(*ren_table); - if (thd->variables.vers_alter_history == VERS_ALTER_HISTORY_SURVIVE) - { - rc= vtmd.try_rename(thd, new_db->str, new_alias.str); - if (rc) - goto revert_table_name; - } if ((rc= Table_triggers_list::change_table_name(thd, &ren_table->db, &old_alias, &ren_table->table_name, new_db, &new_alias))) { - if (thd->variables.vers_alter_history == VERS_ALTER_HISTORY_SURVIVE) - vtmd.revert_rename(thd, new_db->str); -revert_table_name: /* We've succeeded in renaming table's .frm and in updating corresponding handler data, but have failed to update table's |