Commit 164d580f authored by marko's avatar marko

branches/zip: Enable HASH_ASSERT_OWNED independently of UNIV_SYNC_DEBUG.

parent b7ed87a3
...@@ -66,12 +66,8 @@ hash_calc_hash( ...@@ -66,12 +66,8 @@ hash_calc_hash(
hash_table_t* table); /* in: hash table */ hash_table_t* table); /* in: hash table */
/************************************************************************ /************************************************************************
Assert that the mutex for the table in a hash operation is owned. */ Assert that the mutex for the table in a hash operation is owned. */
#ifdef UNIV_SYNC_DEBUG #define HASH_ASSERT_OWNED(TABLE, FOLD) \
# define HASH_ASSERT_OWNED(TABLE, FOLD) \
ut_ad(!(TABLE)->mutexes || mutex_own(hash_get_mutex(TABLE, FOLD))); ut_ad(!(TABLE)->mutexes || mutex_own(hash_get_mutex(TABLE, FOLD)));
#else
# define HASH_ASSERT_OWNED(TABLE, FOLD)
#endif
/*********************************************************************** /***********************************************************************
Inserts a struct to a hash table. */ Inserts a struct to a hash table. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment