Skip to content
Permalink
Browse files
Make DISCARD TABLESPACE more robust
dict_load_table_low(): Copy the 'discarded' flag to file_unreadable.
This allows to avoid a potentially harmful call to dict_stats_init()
in ha_innobase::open().
  • Loading branch information
dr-m committed Sep 22, 2020
1 parent 2af8f71 commit e5e83da
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2686,7 +2686,7 @@ static const char* dict_load_table_low(const table_name_t& name,
*table = dict_mem_table_create(
name.m_name, space_id, n_cols + n_v_col, n_v_col, flags, flags2);
(*table)->id = table_id;
(*table)->file_unreadable = false;
(*table)->file_unreadable = !!(flags2 & DICT_TF2_DISCARDED);

return(NULL);
}

0 comments on commit e5e83da

Please sign in to comment.