Skip to content

Commit f648145

Browse files
committed
dict_table_t::init_instant(): Remove a bogus assertion
This is basically re-applying 8fe34dd. 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.
1 parent a87e501 commit f648145

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

storage/innobase/handler/handler0alter.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ inline void dict_table_t::init_instant(const dict_table_t& table)
171171
dict_index_t& index = *indexes.start;
172172
const unsigned u = index.first_user_field();
173173
DBUG_ASSERT(u == oindex.first_user_field());
174-
DBUG_ASSERT(not_redundant() == table.not_redundant());
175174
DBUG_ASSERT(index.n_fields >= oindex.n_fields);
176175

177176
field_map_element_t* field_map_it = static_cast<field_map_element_t*>(

0 commit comments

Comments
 (0)