diff options
author | unknown <marko@hundin.mysql.fi> | 2004-03-16 11:48:20 +0200 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-03-16 11:48:20 +0200 |
commit | 924255133bcac1ae37bd8140f7590809307fb03b (patch) | |
tree | 30faa600de2afb8c7d71e04917ab01d0ba647f1b /innobase/include/log0log.h | |
parent | e9eb02398cb1883081117be0c4f3334d6634724e (diff) | |
download | mariadb-git-924255133bcac1ae37bd8140f7590809307fb03b.tar.gz |
InnoDB: Remove log debug code when UNIV_LOG_DEBUG is not defined
innobase/include/log0log.h:
Remove debug variables unless #ifdef UNIV_LOG_DEBUG
innobase/include/log0log.ic:
Remove log_check_log_recs() unless #ifdef UNIV_LOG_DEBUG
innobase/log/log0log.c:
Remove log_debug_writes unless #ifdef UNIV_LOG_DEBUG
log_io_complete_checkpoint(): Remove parameter; move debug output to log_io_complete(), the only caller
Test log_debug_writes only #ifdef UNIV_LOG_DEBUG
innobase/log/log0recv.c:
Test log_debug_writes only #ifdef UNIV_LOG_DEBUG
Diffstat (limited to 'innobase/include/log0log.h')
-rw-r--r-- | innobase/include/log0log.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/innobase/include/log0log.h b/innobase/include/log0log.h index 24ec28a56e6..9fba0c46407 100644 --- a/innobase/include/log0log.h +++ b/innobase/include/log0log.h @@ -18,7 +18,9 @@ typedef struct log_struct log_t; typedef struct log_group_struct log_group_t; extern ibool log_do_write; +#ifdef UNIV_LOG_DEBUG extern ibool log_debug_writes; +#endif /* UNIV_LOG_DEBUG */ /* Wait modes for log_write_up_to */ #define LOG_NO_WAIT 91 @@ -713,11 +715,13 @@ struct log_struct{ ulint max_buf_free; /* recommended maximum value of buf_free, after which the buffer is flushed */ +#ifdef UNIV_LOG_DEBUG ulint old_buf_free; /* value of buf free when log was last time opened; only in the debug version */ dulint old_lsn; /* value of lsn when log was last time opened; only in the debug version */ +#endif /* UNIV_LOG_DEBUG */ ibool check_flush_or_checkpoint; /* this is set to TRUE when there may be need to flush the log buffer, or |