Commit f4a5ab60 authored by marko's avatar marko

branches/zip: fseg_validate(): Enclose in #ifdef UNIV_DEBUG.

This function is unused, but it could turn out to be a useful debugging aid.
parent 6a44d90b
...@@ -3721,6 +3721,7 @@ fseg_validate_low( ...@@ -3721,6 +3721,7 @@ fseg_validate_low(
return(TRUE); return(TRUE);
} }
#ifdef UNIV_DEBUG
/*******************************************************************//** /*******************************************************************//**
Validates a segment. Validates a segment.
@return TRUE if ok */ @return TRUE if ok */
...@@ -3748,6 +3749,7 @@ fseg_validate( ...@@ -3748,6 +3749,7 @@ fseg_validate(
return(ret); return(ret);
} }
#endif /* UNIV_DEBUG */
/*******************************************************************//** /*******************************************************************//**
Writes info of a segment. */ Writes info of a segment. */
......
...@@ -330,6 +330,7 @@ void ...@@ -330,6 +330,7 @@ void
fsp_print( fsp_print(
/*======*/ /*======*/
ulint space); /*!< in: space id */ ulint space); /*!< in: space id */
#ifdef UNIV_DEBUG
/*******************************************************************//** /*******************************************************************//**
Validates a segment. Validates a segment.
@return TRUE if ok */ @return TRUE if ok */
...@@ -338,7 +339,8 @@ ibool ...@@ -338,7 +339,8 @@ ibool
fseg_validate( fseg_validate(
/*==========*/ /*==========*/
fseg_header_t* header, /*!< in: segment header */ fseg_header_t* header, /*!< in: segment header */
mtr_t* mtr2); /*!< in: mtr */ mtr_t* mtr); /*!< in: mtr */
#endif /* UNIV_DEBUG */
#ifdef UNIV_BTR_PRINT #ifdef UNIV_BTR_PRINT
/*******************************************************************//** /*******************************************************************//**
Writes info of a segment. */ Writes info of a segment. */
......
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