Commit 3905ba7c authored by Marko Mäkelä's avatar Marko Mäkelä

row_build_low(): Handle the metadata record correctly

parent a140cd1f
......@@ -514,11 +514,23 @@ row_build_low(
j = 0;
const dict_field_t* ind_field = index->fields;
for (ulint i = 0; i < rec_offs_n_fields(offsets); i++) {
const dict_field_t* ind_field
= dict_index_get_nth_field(index, i);
if (i == index->first_user_field()
&& rec_is_alter_metadata(rec, *index)) {
ut_ad(rec_offs_nth_extern(offsets, i));
ut_d(ulint len);
ut_d(rec_get_nth_field_offs(offsets, i, &len));
ut_ad(len == FIELD_REF_SIZE);
continue;
}
if (ind_field->prefix_len) {
ut_ad(ind_field < &index->fields[index->n_fields]);
const dict_col_t* col = dict_field_get_col(ind_field);
if ((ind_field++)->prefix_len) {
/* Column prefixes can only occur in key
fields, which cannot be stored externally. For
a column prefix, there should also be the full
......@@ -528,9 +540,6 @@ row_build_low(
continue;
}
const dict_col_t* col
= dict_field_get_col(ind_field);
if (col->is_dropped()) {
continue;
}
......
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