Skip to content

Commit c614f7c

Browse files
committed
bug#34800754 Assertion failure: dict0dict.ic:1102:col_index < table->n_cols thread 1406284440
Issue: An assert in storage/innobase/include/dict0dict.ic triggers, indicating an invalid column index, while the column index is in fact correct. Background: The column index provided to dict_table_get_index_on_first_col is an index among all columns, while the n_cols field of dict_table_t only countains the number of non-virtual columns. Thus, the assert could be triggered with correct arguments. Fix: Changing the assert to compare against the n_t_cols field, the total number of columns. Change-Id: I90cc8c07d428c9117ca7873e9f53752d50f800e6
1 parent 178d7cd commit c614f7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/include/dict0dict.ic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ static inline dict_index_t *dict_table_get_index_on_first_col(
11001100
ulint col_index) /*!< in: position of column
11011101
in table */
11021102
{
1103-
ut_ad(col_index < table->n_cols);
1103+
ut_a(col_index < table->n_t_cols);
11041104

11051105
ulint non_v_col_index = col_index;
11061106
dict_col_t *column = nullptr;

0 commit comments

Comments
 (0)