From 4deb5d53532f5b31554e48e03f463b804a8c8890 Mon Sep 17 00:00:00 2001 From: Nisha Gopalakrishnan Date: Wed, 22 May 2024 13:04:58 +1000 Subject: [PATCH] Bug#35869747: Cannot drop index from upgraded instance Fixed the build failure due to unused variable(used only in debug execute if stmt). Change-Id: Iff3915028f1d3631af2fe85669891144ab048856 --- storage/innobase/dict/dict0dd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/dict/dict0dd.cc b/storage/innobase/dict/dict0dd.cc index 97a1f0225475..7793d7caba6f 100644 --- a/storage/innobase/dict/dict0dd.cc +++ b/storage/innobase/dict/dict0dd.cc @@ -2867,8 +2867,8 @@ template const dict_index_t *dd_find_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;);