Commit 4f85eadf authored by Eugene Kosov's avatar Eugene Kosov

MDEV-25951 followup

FTS indexes has a prefix_len=1 or prefix_len=0 as stated by comment in
mysql_prepare_create_table().

Thus, a newly added assertion should be relaxed for FTS indexes.
parent fdeaad1d
...@@ -2577,10 +2577,15 @@ dict_load_indexes( ...@@ -2577,10 +2577,15 @@ dict_load_indexes(
goto func_exit; goto func_exit;
} }
for (uint i = 0; i < index->n_fields; i++) { // The following assertion doesn't hold for FTS indexes
dict_field_t &f = index->fields[i]; // as it may have prefix_len=1 with any charset
ut_ad(f.col->mbmaxlen == 0 if (index->type != DICT_FTS) {
|| f.prefix_len % f.col->mbmaxlen == 0); for (uint i = 0; i < index->n_fields; i++) {
dict_field_t &f = index->fields[i];
ut_ad(f.col->mbmaxlen == 0
|| f.prefix_len
% f.col->mbmaxlen == 0);
}
} }
} }
next_rec: next_rec:
......
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