Skip to content

Commit

Permalink
Bug#35869747: Cannot drop index from upgraded instance
Browse files Browse the repository at this point in the history
Fixed the build failure due to unused variable(used only in debug
execute if stmt).

Change-Id: Iff3915028f1d3631af2fe85669891144ab048856
  • Loading branch information
Nisha Gopalakrishnan authored and dahlerlend committed May 26, 2024
1 parent a79ed51 commit 4deb5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/dict/dict0dd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2867,8 +2867,8 @@ template const dict_index_t *dd_find_index<dd::Partition_index>(

index->n_uniq = n_uniq;

const ulint max_len = DICT_MAX_FIELD_LEN_BY_FORMAT(table);
DBUG_EXECUTE_IF("ib_create_table_fail_at_create_index",
const ulint max_len = DICT_MAX_FIELD_LEN_BY_FORMAT(table);
dict_mem_index_free(index);
my_error(ER_INDEX_COLUMN_TOO_LONG, MYF(0), max_len);
return HA_ERR_TOO_BIG_ROW;);
Expand Down

0 comments on commit 4deb5d5

Please sign in to comment.