Commit 92e8d1b2 authored by marko's avatar marko

branches/zip: log_check_log_recs(): Enclose in #ifdef UNIV_LOG_DEBUG.

Add const qualifiers.
parent 1a83ac7f
...@@ -27,6 +27,7 @@ Created 12/9/1995 Heikki Tuuri ...@@ -27,6 +27,7 @@ Created 12/9/1995 Heikki Tuuri
#include "mach0data.h" #include "mach0data.h"
#include "mtr0mtr.h" #include "mtr0mtr.h"
#ifdef UNIV_LOG_DEBUG
/******************************************************//** /******************************************************//**
Checks by parsing that the catenated log segment for a single mtr is Checks by parsing that the catenated log segment for a single mtr is
consistent. */ consistent. */
...@@ -34,11 +35,12 @@ UNIV_INTERN ...@@ -34,11 +35,12 @@ UNIV_INTERN
ibool ibool
log_check_log_recs( log_check_log_recs(
/*===============*/ /*===============*/
byte* buf, /*!< in: pointer to the start of const byte* buf, /*!< in: pointer to the start of
the log segment in the the log segment in the
log_sys->buf log buffer */ log_sys->buf log buffer */
ulint len, /*!< in: segment length in bytes */ ulint len, /*!< in: segment length in bytes */
ib_uint64_t buf_start_lsn); /*!< in: buffer start lsn */ ib_uint64_t buf_start_lsn); /*!< in: buffer start lsn */
#endif /* UNIV_LOG_DEBUG */
/************************************************************//** /************************************************************//**
Gets a log block flush bit. Gets a log block flush bit.
......
...@@ -3234,6 +3234,7 @@ loop: ...@@ -3234,6 +3234,7 @@ loop:
ut_a(lsn == log_sys->lsn); ut_a(lsn == log_sys->lsn);
} }
#ifdef UNIV_LOG_DEBUG
/******************************************************//** /******************************************************//**
Checks by parsing that the catenated log segment for a single mtr is Checks by parsing that the catenated log segment for a single mtr is
consistent. */ consistent. */
...@@ -3241,7 +3242,7 @@ UNIV_INTERN ...@@ -3241,7 +3242,7 @@ UNIV_INTERN
ibool ibool
log_check_log_recs( log_check_log_recs(
/*===============*/ /*===============*/
byte* buf, /*!< in: pointer to the start of const byte* buf, /*!< in: pointer to the start of
the log segment in the the log segment in the
log_sys->buf log buffer */ log_sys->buf log buffer */
ulint len, /*!< in: segment length in bytes */ ulint len, /*!< in: segment length in bytes */
...@@ -3249,8 +3250,8 @@ log_check_log_recs( ...@@ -3249,8 +3250,8 @@ log_check_log_recs(
{ {
ib_uint64_t contiguous_lsn; ib_uint64_t contiguous_lsn;
ib_uint64_t scanned_lsn; ib_uint64_t scanned_lsn;
byte* start; const byte* start;
byte* end; const byte* end;
byte* buf1; byte* buf1;
byte* scan_buf; byte* scan_buf;
...@@ -3283,6 +3284,7 @@ log_check_log_recs( ...@@ -3283,6 +3284,7 @@ log_check_log_recs(
return(TRUE); return(TRUE);
} }
#endif /* UNIV_LOG_DEBUG */
/******************************************************//** /******************************************************//**
Peeks the current lsn. Peeks the current lsn.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment