diff options
author | unknown <marko@hundin.mysql.fi> | 2005-06-15 12:50:27 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2005-06-15 12:50:27 +0300 |
commit | 5fed4f3a5026b6fa1b6da28d463b9f43839041a0 (patch) | |
tree | 29db2446b8f188f6989ac63fcc6039655b17b55b /innobase/srv | |
parent | 113c6278516f56f5f4a9356b8ffb234d618e782b (diff) | |
download | mariadb-git-5fed4f3a5026b6fa1b6da28d463b9f43839041a0.tar.gz |
InnoDB: Remove unreachable debug code from non-debug builds.
innobase/buf/buf0buf.c:
Remove buf_dbg_counter unless #ifdef UNIV_DEBUG
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/buf/buf0flu.c:
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/buf/buf0lru.c:
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/buf/buf0rea.c:
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/include/buf0buf.h:
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/include/buf0buf.ic:
Remove buf_dbg_counter unless #ifdef UNIV_DEBUG
innobase/include/log0log.h:
Remove log_do_write and log_debug_writes unless #ifdef UNIV_DEBUG
innobase/log/log0log.c:
Remove log_do_write and log_debug_writes unless #ifdef UNIV_DEBUG
innobase/log/log0recv.c:
Remove log_debug_writes unless #ifdef UNIV_DEBUG
innobase/srv/srv0start.c:
Remove log_do_write and buf_debug_prints unless #ifdef UNIV_DEBUG
innobase/sync/sync0sync.c:
Remove buf_debug_prints unless #ifdef UNIV_DEBUG
Diffstat (limited to 'innobase/srv')
-rw-r--r-- | innobase/srv/srv0start.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/innobase/srv/srv0start.c b/innobase/srv/srv0start.c index e136aee43e8..cf63ae7acc3 100644 --- a/innobase/srv/srv0start.c +++ b/innobase/srv/srv0start.c @@ -1040,7 +1040,9 @@ innobase_start_or_create_for_mysql(void) srv_start_has_been_called = TRUE; +#ifdef UNIV_DEBUG log_do_write = TRUE; +#endif /* UNIV_DEBUG */ /* yydebug = TRUE; */ srv_is_being_started = TRUE; @@ -1554,8 +1556,9 @@ NetWare. */ os_thread_create(&srv_master_thread, NULL, thread_ids + 1 + SRV_MAX_N_IO_THREADS); +#ifdef UNIV_DEBUG /* buf_debug_prints = TRUE; */ - +#endif /* UNIV_DEBUG */ sum_of_data_file_sizes = 0; for (i = 0; i < srv_n_data_files; i++) { |