diff options
Diffstat (limited to 'innobase/sync/sync0sync.c')
-rw-r--r-- | innobase/sync/sync0sync.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/innobase/sync/sync0sync.c b/innobase/sync/sync0sync.c index 32615ce88ac..7b387946d82 100644 --- a/innobase/sync/sync0sync.c +++ b/innobase/sync/sync0sync.c @@ -301,9 +301,9 @@ mutex_enter_nowait( if (!mutex_test_and_set(mutex)) { - #ifdef UNIV_SYNC_DEBUG +#ifdef UNIV_SYNC_DEBUG mutex_set_debug_info(mutex, file_name, line); - #endif +#endif mutex->file_name = file_name; mutex->line = line; @@ -402,9 +402,9 @@ spin_loop: if (mutex_test_and_set(mutex) == 0) { /* Succeeded! */ - #ifdef UNIV_SYNC_DEBUG +#ifdef UNIV_SYNC_DEBUG mutex_set_debug_info(mutex, file_name, line); - #endif +#endif mutex->file_name = file_name; mutex->line = line; @@ -449,9 +449,9 @@ spin_loop: sync_array_free_cell(sync_primary_wait_array, index); - #ifdef UNIV_SYNC_DEBUG +#ifdef UNIV_SYNC_DEBUG mutex_set_debug_info(mutex, file_name, line); - #endif +#endif mutex->file_name = file_name; mutex->line = line; @@ -671,18 +671,18 @@ ibool sync_all_freed(void) /*================*/ { - #ifdef UNIV_SYNC_DEBUG +#ifdef UNIV_SYNC_DEBUG if (mutex_n_reserved() + rw_lock_n_locked() == 0) { return(TRUE); } else { return(FALSE); } - #else +#else ut_error; return(FALSE); - #endif +#endif } /********************************************************************** |