diff options
author | marko@hundin.mysql.fi <> | 2004-04-07 14:19:26 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2004-04-07 14:19:26 +0300 |
commit | 253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f (patch) | |
tree | 2f1cb9f7307ff2cede7e13d739760692e11dcaaf /innobase/sync | |
parent | 44a6fcba2f357b3f74bde8673046b310ecfd6645 (diff) | |
download | mariadb-git-253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f.tar.gz |
InnoDB: Remove debug functions unless #ifdef UNIV_DEBUG
Diffstat (limited to 'innobase/sync')
-rw-r--r-- | innobase/sync/sync0rw.c | 2 | ||||
-rw-r--r-- | innobase/sync/sync0sync.c | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/innobase/sync/sync0rw.c b/innobase/sync/sync0rw.c index e3caa24cb1e..9dd5148e27a 100644 --- a/innobase/sync/sync0rw.c +++ b/innobase/sync/sync0rw.c @@ -157,6 +157,7 @@ rw_lock_free( mutex_exit(&rw_lock_list_mutex); } +#ifdef UNIV_DEBUG /********************************************************************** Checks that the rw-lock has been initialized and that there are no simultaneous shared and exclusive locks. */ @@ -184,6 +185,7 @@ rw_lock_validate( return(TRUE); } +#endif /* UNIV_DEBUG */ /********************************************************************** Lock an rw-lock in shared mode for the current thread. If the rw-lock is diff --git a/innobase/sync/sync0sync.c b/innobase/sync/sync0sync.c index 3539d7de817..c534dc6823d 100644 --- a/innobase/sync/sync0sync.c +++ b/innobase/sync/sync0sync.c @@ -275,6 +275,7 @@ mutex_enter_nowait( return(1); } +#ifdef UNIV_DEBUG /********************************************************************** Checks that the mutex has been initialized. */ @@ -288,6 +289,7 @@ mutex_validate( return(TRUE); } +#endif /* UNIV_DEBUG */ /********************************************************************** Sets the waiters field in a mutex. */ @@ -1034,8 +1036,11 @@ sync_thread_add_level( } else if (level == SYNC_DICT_HEADER) { ut_a(sync_thread_levels_g(array, SYNC_DICT_HEADER)); } else if (level == SYNC_DICT) { - ut_a(buf_debug_prints - || sync_thread_levels_g(array, SYNC_DICT)); + ut_a( +#ifdef UNIV_DEBUG + buf_debug_prints || +#endif /* UNIV_DEBUG */ + sync_thread_levels_g(array, SYNC_DICT)); } else { ut_error; } |