diff --git a/include/dict0dict.h b/include/dict0dict.h index 92edfe11bc7..e8f538acd53 100644 --- a/include/dict0dict.h +++ b/include/dict0dict.h @@ -694,9 +694,9 @@ UNIV_INLINE ulint dict_index_get_n_unique( /*====================*/ - /* out: number of fields */ - dict_index_t* index); /* in: an internal representation of index - (in the dictionary cache) */ + /* out: number of fields */ + const dict_index_t* index); /* in: an internal representation + of index (in the dictionary cache) */ /************************************************************************ Gets the number of fields in the internal representation of an index which uniquely determine the position of an index entry in the index, if @@ -705,9 +705,9 @@ UNIV_INLINE ulint dict_index_get_n_unique_in_tree( /*============================*/ - /* out: number of fields */ - dict_index_t* index); /* in: an internal representation of index - (in the dictionary cache) */ + /* out: number of fields */ + const dict_index_t* index); /* in: an internal representation + of index (in the dictionary cache) */ /************************************************************************ Gets the number of user-defined ordering fields in the index. In the internal representation we add the row id to the ordering fields to make all indexes diff --git a/include/dict0dict.ic b/include/dict0dict.ic index dddaa3ba761..b58dfa868bc 100644 --- a/include/dict0dict.ic +++ b/include/dict0dict.ic @@ -375,9 +375,9 @@ UNIV_INLINE ulint dict_index_get_n_unique( /*====================*/ - /* out: number of fields */ - dict_index_t* index) /* in: an internal representation of index - (in the dictionary cache) */ + /* out: number of fields */ + const dict_index_t* index) /* in: an internal representation + of index (in the dictionary cache) */ { ut_ad(index); ut_ad(index->magic_n == DICT_INDEX_MAGIC_N); @@ -394,9 +394,9 @@ UNIV_INLINE ulint dict_index_get_n_unique_in_tree( /*============================*/ - /* out: number of fields */ - dict_index_t* index) /* in: an internal representation of index - (in the dictionary cache) */ + /* out: number of fields */ + const dict_index_t* index) /* in: an internal representation + of index (in the dictionary cache) */ { ut_ad(index); ut_ad(index->magic_n == DICT_INDEX_MAGIC_N);