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

This function is unused, but it could turn out to be a useful debugging aid.
This commit is contained in:
marko 2009-06-30 08:15:22 +00:00
parent a300e54652
commit 613d263a24
2 changed files with 5 additions and 1 deletions

View file

@ -3721,6 +3721,7 @@ fseg_validate_low(
return(TRUE);
}
#ifdef UNIV_DEBUG
/*******************************************************************//**
Validates a segment.
@return TRUE if ok */
@ -3748,6 +3749,7 @@ fseg_validate(
return(ret);
}
#endif /* UNIV_DEBUG */
/*******************************************************************//**
Writes info of a segment. */

View file

@ -330,6 +330,7 @@ void
fsp_print(
/*======*/
ulint space); /*!< in: space id */
#ifdef UNIV_DEBUG
/*******************************************************************//**
Validates a segment.
@return TRUE if ok */
@ -338,7 +339,8 @@ ibool
fseg_validate(
/*==========*/
fseg_header_t* header, /*!< in: segment header */
mtr_t* mtr2); /*!< in: mtr */
mtr_t* mtr); /*!< in: mtr */
#endif /* UNIV_DEBUG */
#ifdef UNIV_BTR_PRINT
/*******************************************************************//**
Writes info of a segment. */