summaryrefslogtreecommitdiff
path: root/storage/innobase/include/hash0hash.h
diff options
context:
space:
mode:
authorunknown <tsmith@siva.hindu.god>2007-01-05 16:05:48 -0700
committerunknown <tsmith@siva.hindu.god>2007-01-05 16:05:48 -0700
commit0e4155835c637c1c459cc9c77458e88ab4f27545 (patch)
tree0b356d21101dc7456df092ff091050ef621eefc0 /storage/innobase/include/hash0hash.h
parent0275fa0eb235e56af21282d43f2d9ed3bc4eee41 (diff)
parenta5868736ff8c1c314e7c72a2fac9d138b69d56b1 (diff)
downloadmariadb-git-0e4155835c637c1c459cc9c77458e88ab4f27545.tar.gz
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
Diffstat (limited to 'storage/innobase/include/hash0hash.h')
-rw-r--r--storage/innobase/include/hash0hash.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/storage/innobase/include/hash0hash.h b/storage/innobase/include/hash0hash.h
index 3685dbb1d82..efd9bcb4c54 100644
--- a/storage/innobase/include/hash0hash.h
+++ b/storage/innobase/include/hash0hash.h
@@ -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. */