1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

remove HTON_FLUSH_AFTER_RENAME (BDB-ism, unused for years)

This commit is contained in:
Sergei Golubchik
2014-06-18 11:53:42 +02:00
parent fb8818c1af
commit cc5b3998b6
2 changed files with 0 additions and 19 deletions

View File

@ -9073,24 +9073,6 @@ end_inplace:
if (write_bin_log(thd, true, thd->query(), thd->query_length()))
DBUG_RETURN(true);
if (ha_check_storage_engine_flag(old_db_type, HTON_FLUSH_AFTER_RENAME))
{
/*
For the alter table to be properly flushed to the logs, we
have to open the new table. If not, we get a problem on server
shutdown. But we do not need to attach MERGE children.
*/
TABLE *t_table;
t_table= open_table_uncached(thd, new_db_type, alter_ctx.get_new_path(),
alter_ctx.new_db, alter_ctx.new_name,
false, true);
if (t_table)
intern_close_table(t_table);
else
sql_print_warning("Could not open table %s.%s after rename\n",
alter_ctx.new_db, alter_ctx.table_name);
ha_flush_logs(old_db_type);
}
table_list->table= NULL; // For query cache
query_cache_invalidate3(thd, table_list, false);