Skip to content

Commit 22a82e2

Browse files
Jimmy Yangbjornmu
authored andcommitted
Bug#21847170 - ALTER TABLE ADD VIRTUAL INDEX HITS ASSERT IN
HA_INNOBASE::INPLACE_ALTER_TABLE Reviewed-by Marko Makela <[email protected]> (cherry picked from commit f395648d61523d44f3dee1c701e138d34f568a1f)
1 parent d482889 commit 22a82e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/handler/handler0alter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5856,7 +5856,7 @@ ha_innobase::inplace_alter_table(
58565856
ctx->m_stage, add_v);
58575857

58585858
if (s_templ) {
5859-
ut_ad(ctx->need_rebuild() || ctx->new_table->n_v_cols);
5859+
ut_ad(ctx->need_rebuild() || ctx->num_to_add_vcol);
58605860
free_vc_templ(s_templ);
58615861

58625862
if (old_templ) {

0 commit comments

Comments
 (0)