summaryrefslogtreecommitdiff
path: root/storage/innobase/include/hash0hash.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-18 12:17:37 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-18 14:16:01 +0300
commitbf3c862faa8efed4a662725ec27586cd69e9228e (patch)
tree85acdff0c73a376fa5cdd15a6d8f92bff3efe303 /storage/innobase/include/hash0hash.ic
parent9159b8976f7dfe9c956608f23df42d49ba1fcbbc (diff)
downloadmariadb-git-bf3c862faa8efed4a662725ec27586cd69e9228e.tar.gz
MDEV-22871: Clean up btr_search_sys
btr_search_sys::parts[]: A single structure for the partitions of the adaptive hash index. Replaces the 3 separate arrays: btr_search_latches[], btr_search_sys->hash_tables, btr_search_sys->hash_tables[i]->heap. hash_table_t::heap, hash_table_t::adaptive: Remove. ha0ha.cc: Remove. Move all code to btr0sea.cc.
Diffstat (limited to 'storage/innobase/include/hash0hash.ic')
-rw-r--r--storage/innobase/include/hash0hash.ic3
1 files changed, 0 insertions, 3 deletions
diff --git a/storage/innobase/include/hash0hash.ic b/storage/innobase/include/hash0hash.ic
index 63661b041fd..e6ca3b15bd0 100644
--- a/storage/innobase/include/hash0hash.ic
+++ b/storage/innobase/include/hash0hash.ic
@@ -35,7 +35,6 @@ hash_get_nth_cell(
ulint n) /*!< in: cell index */
{
ut_ad(table);
- ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);
ut_ad(n < table->n_cells);
return(table->array + n);
@@ -50,7 +49,6 @@ hash_table_clear(
hash_table_t* table) /*!< in/out: hash table */
{
ut_ad(table);
- ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);
memset(table->array, 0x0,
table->n_cells * sizeof(*table->array));
}
@@ -65,6 +63,5 @@ hash_get_n_cells(
hash_table_t* table) /*!< in: table */
{
ut_ad(table);
- ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);
return(table->n_cells);
}