diff options
Diffstat (limited to 'innobase/sync/sync0sync.c')
-rw-r--r-- | innobase/sync/sync0sync.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |