diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-04-13 10:09:16 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-04-13 11:18:19 +0530 |
commit | e262eb165c197083df9f4986ab54c5b2dcbd6290 (patch) | |
tree | a478d5013b5ab561d2a03ea5b270555f2f3567b0 | |
parent | f776fa96b4e04644155087a2c3919be13c1000a6 (diff) | |
download | mariadb-git-e262eb165c197083df9f4986ab54c5b2dcbd6290.tar.gz |
MDEV-24971 InnoDB access freed virtual column after rollback of secondary indexst-10.2-MDEV-24971
- Fixing post-fix failure. In clean_new_vcol_index(), InnoDB has the wrong
offset to store the virtual column
-rw-r--r-- | storage/innobase/handler/handler0alter.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc index 1f6dbe1eda9..3ac4f4fe4c1 100644 --- a/storage/innobase/handler/handler0alter.cc +++ b/storage/innobase/handler/handler0alter.cc @@ -296,10 +296,9 @@ struct ha_innobase_inplace_ctx : public inplace_alter_handler_ctx continue; dict_v_col_t *drop_vcol= index->new_vcol_info-> - add_drop_v_col(index->heap, vcol, n_drop_new_vcol); + add_drop_v_col(index->heap, vcol, --n_drop_new_vcol); /* Re-assign the index field with newly stored virtual column */ index->fields[i].col= reinterpret_cast<dict_col_t*>(drop_vcol); - n_drop_new_vcol--; } } } |