dict_table_t::init_instant(): Remove a bogus assertion
This is basically re-applying 8fe34dd45f39b22ae0134532b5b5247e4e8620fe. Assertions about ROW_FORMAT not changing during instant ALTER TABLE can fail if the MariaDB and InnoDB data dictionaries get out of sync, for example if innodb_default_row_format is used instead of specifying ROW_FORMAT in the CREATE TABLE statement. In this case, ALTER_OPTIONS would not necessarily be set. We would create the ctx->instant_table with a ROW_FORMAT based on altered_table. When applying it to the ctx->old_table, we will preserve the original ROW_FORMAT.
This commit is contained in:
parent
a87e501945
commit
f648145717
@ -171,7 +171,6 @@ inline void dict_table_t::init_instant(const dict_table_t& table)
|
||||
dict_index_t& index = *indexes.start;
|
||||
const unsigned u = index.first_user_field();
|
||||
DBUG_ASSERT(u == oindex.first_user_field());
|
||||
DBUG_ASSERT(not_redundant() == table.not_redundant());
|
||||
DBUG_ASSERT(index.n_fields >= oindex.n_fields);
|
||||
|
||||
field_map_element_t* field_map_it = static_cast<field_map_element_t*>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user