mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
MDEV-26621 assertion failue "index->table->persistent_autoinc" in /storage/innobase/btr/btr0btr.cc during IMPORT
dict_index_t::clear_instant_alter(): when searhing for an AUTO_INCREMENT column don't skip the beginning of the list because the field can be at the beginning of the list
This commit is contained in:
parent
689b8d060a
commit
5b0a76078a
3 changed files with 28 additions and 1 deletions
|
|
@ -2440,7 +2440,7 @@ inline void dict_index_t::clear_instant_alter()
|
|||
{ return a.col->ind < b.col->ind; });
|
||||
table->instant = NULL;
|
||||
if (ai_col) {
|
||||
auto a = std::find_if(begin, end,
|
||||
auto a = std::find_if(fields, end,
|
||||
[ai_col](const dict_field_t& f)
|
||||
{ return f.col == ai_col; });
|
||||
table->persistent_autoinc = (a == end) ? 0 : 1 + (a - fields);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue