Commit b8a57e22 authored by Marko Mäkelä's avatar Marko Mäkelä

dict_table_t::instant_op_column(): Skip to-be-dropped indexes

On instant DROP COLUMN, there is no point in updating indexes
that depended on the dropped column. This avoids a memory access
violation in innodb.instant_alter.
parent 1d75a6d4
...@@ -1647,6 +1647,9 @@ void dict_table_t::instant_op_column( ...@@ -1647,6 +1647,9 @@ void dict_table_t::instant_op_column(
index->instant = true; index->instant = true;
while ((index = dict_table_get_next_index(index)) != NULL) { while ((index = dict_table_get_next_index(index)) != NULL) {
if (index->to_be_dropped) {
continue;
}
for (unsigned i = 0; i < index->n_fields; i++) { for (unsigned i = 0; i < index->n_fields; i++) {
dict_field_t& field = index->fields[i]; dict_field_t& field = index->fields[i];
if (field.col < old_cols if (field.col < old_cols
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment