diff options
author | unknown <marko@hundin.mysql.fi> | 2004-08-11 16:04:37 +0300 |
---|---|---|
committer | unknown <marko@hundin.mysql.fi> | 2004-08-11 16:04:37 +0300 |
commit | 4b390e98c7c454cf1a8046df11c9b48c8c9d1c4e (patch) | |
tree | 5ea2512e9b4b5703baeb1557dfd24c08f9dc3d1c /innobase/buf | |
parent | 5b37002243f1e40103d7d162aee20c84cae321ec (diff) | |
download | mariadb-git-4b390e98c7c454cf1a8046df11c9b48c8c9d1c4e.tar.gz |
InnoDB: Make UNIV_LOG_DEBUG work
innobase/buf/buf0flu.c:
buf_flush_write_block_low(): Warn about UNIV_LOG_DEBUG only once
innobase/log/log0recv.c:
log_block_checksum_is_ok_or_old_format(): Disable the check
if UNIV_LOG_DEBUG is defined
Diffstat (limited to 'innobase/buf')
-rw-r--r-- | innobase/buf/buf0flu.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/innobase/buf/buf0flu.c b/innobase/buf/buf0flu.c index 6cefdb60956..cad51c224e2 100644 --- a/innobase/buf/buf0flu.c +++ b/innobase/buf/buf0flu.c @@ -412,6 +412,9 @@ buf_flush_write_block_low( /*======================*/ buf_block_t* block) /* in: buffer block to write */ { +#ifdef UNIV_LOG_DEBUG + static ibool univ_log_debug_warned; +#endif /* UNIV_LOG_DEBUG */ ut_a(block->state == BUF_BLOCK_FILE_PAGE); #ifdef UNIV_IBUF_DEBUG @@ -420,8 +423,13 @@ buf_flush_write_block_low( ut_ad(!ut_dulint_is_zero(block->newest_modification)); #ifdef UNIV_LOG_DEBUG - fputs("Warning: cannot force log to disk in the log debug version!\n", - stderr); + if (!univ_log_debug_warned) { + univ_log_debug_warned = TRUE; + fputs( + "Warning: cannot force log to disk if UNIV_LOG_DEBUG is defined!\n" + "Crash recovery will not work!\n", + stderr); + } #else /* Force the log to the disk before writing the modified block */ log_write_up_to(block->newest_modification, LOG_WAIT_ALL_GROUPS, TRUE); |