diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-04-13 10:09:16 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-04-13 10:09:16 +0530 |
commit | 97e7f8a1e9492357fbdaad8813eae93a3d4fa5da (patch) | |
tree | 187e8e2bb2ee215ab0a8da4efd69f4954d156fd4 | |
parent | 68e0defc5be41e42f5f9d050a436a5f88277a586 (diff) | |
download | mariadb-git-bb-10.2-MDEV-24971.tar.gz |
MDEV-24971 InnoDB access freed virtual column after rollback of secondary indexbb-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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc index 1f6dbe1eda9..f57b2c13fd7 100644 --- a/storage/innobase/handler/handler0alter.cc +++ b/storage/innobase/handler/handler0alter.cc @@ -296,7 +296,7 @@ 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 - 1); /* 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--; |