1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-12 08:01:43 +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:
marko
2007-08-13 15:57:28 +00:00
parent f68d3656dc
commit e0009cd4db
5 changed files with 25 additions and 18 deletions

View File

@@ -255,7 +255,7 @@ index on it (on row id). */
ibool
row_table_got_default_clust_index(
/*==============================*/
dict_table_t* table);
const dict_table_t* table);
/*************************************************************************
Calculates the key number used inside MySQL for an Innobase index. We have
to take into account if we generated a default clustered index for the table */
@@ -263,7 +263,7 @@ 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);
/*************************************************************************
Does an update or delete of a row for MySQL. */