mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 03:17:20 +02:00
Merge siva.hindu.god:/home/tsmith/m/inno/jan04/51
into siva.hindu.god:/home/tsmith/m/bk/51-build storage/innobase/buf/buf0buf.c: Auto merged storage/innobase/dict/dict0dict.c: Auto merged storage/innobase/ha/ha0ha.c: Auto merged storage/innobase/ha/hash0hash.c: Auto merged storage/innobase/include/hash0hash.h: Auto merged storage/innobase/lock/lock0lock.c: Auto merged storage/innobase/log/log0recv.c: Auto merged
This commit is contained in:
commit
0e4155835c
27 changed files with 336 additions and 268 deletions
|
|
@ -31,12 +31,20 @@ hash0_create(
|
|||
Creates a mutex array to protect a hash table. */
|
||||
|
||||
void
|
||||
hash_create_mutexes(
|
||||
/*================*/
|
||||
hash_create_mutexes_func(
|
||||
/*=====================*/
|
||||
hash_table_t* table, /* in: hash table */
|
||||
ulint n_mutexes, /* in: number of mutexes */
|
||||
ulint sync_level); /* in: latching order level of the
|
||||
#ifdef UNIV_SYNC_DEBUG
|
||||
ulint sync_level, /* in: latching order level of the
|
||||
mutexes: used in the debug version */
|
||||
#endif /* UNIV_SYNC_DEBUG */
|
||||
ulint n_mutexes); /* in: number of mutexes */
|
||||
#ifdef UNIV_SYNC_DEBUG
|
||||
# define hash_create_mutexes(t,n,level) hash_create_mutexes_func(t,level,n)
|
||||
#else /* UNIV_SYNC_DEBUG */
|
||||
# define hash_create_mutexes(t,n,level) hash_create_mutexes_func(t,n)
|
||||
#endif /* UNIV_SYNC_DEBUG */
|
||||
|
||||
/*****************************************************************
|
||||
Frees a hash table. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue