diff options
author | Eugene Kosov <claprix@yandex.ru> | 2021-09-16 16:52:20 +0600 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2021-09-16 16:52:20 +0600 |
commit | 5b0a76078a8ea38e8e19e3e2c49f0f7e091e2f72 (patch) | |
tree | 5e940dd1374a14c4a6bdd66a1464de905d25af7b /storage/innobase | |
parent | 689b8d060ac890dcf1071b34a68234b30005e9a1 (diff) | |
download | mariadb-git-bb-10.4-kevgs.tar.gz |
MDEV-26621 assertion failue "index->table->persistent_autoinc" in /storage/innobase/btr/btr0btr.cc during IMPORTbb-10.4-kevgs
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
Diffstat (limited to 'storage/innobase')
-rw-r--r-- | storage/innobase/include/dict0mem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/dict0mem.h b/storage/innobase/include/dict0mem.h index b0da5b4dc39..fe029fc9fcf 100644 --- a/storage/innobase/include/dict0mem.h +++ b/storage/innobase/include/dict0mem.h @@ -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); |