mirror of
https://github.com/MariaDB/server.git
synced 2025-12-10 19:44:09 +03:00
branches/zip: Add some const qualifiers to dict_index_t* and dict_table_t*.
innobase_create_key_def(), row_table_got_default_clust_index(), row_get_mysql_key_number_for_index(): Add a const qualifier. dict_table_get_first_index(), dict_table_get_next_index(): Define as a const-preserving macro. Preserve the old function for UNIV_DEBUG, but add a const qualifier to the parameter and cast away the constness.
This commit is contained in:
@@ -1783,7 +1783,7 @@ index on it (on row id). */
|
||||
ibool
|
||||
row_table_got_default_clust_index(
|
||||
/*==============================*/
|
||||
dict_table_t* table)
|
||||
const dict_table_t* table)
|
||||
{
|
||||
const dict_index_t* clust_index;
|
||||
|
||||
@@ -1799,10 +1799,10 @@ to take into account if we generated a default clustered index for the table */
|
||||
ulint
|
||||
row_get_mysql_key_number_for_index(
|
||||
/*===============================*/
|
||||
dict_index_t* index)
|
||||
const dict_index_t* index)
|
||||
{
|
||||
dict_index_t* ind;
|
||||
ulint i;
|
||||
const dict_index_t* ind;
|
||||
ulint i;
|
||||
|
||||
ut_a(index);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user