summaryrefslogtreecommitdiff
path: root/innobase/ibuf/ibuf0ibuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/ibuf/ibuf0ibuf.c')
-rw-r--r--innobase/ibuf/ibuf0ibuf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/innobase/ibuf/ibuf0ibuf.c b/innobase/ibuf/ibuf0ibuf.c
index 2745af42ff7..83bb23b036f 100644
--- a/innobase/ibuf/ibuf0ibuf.c
+++ b/innobase/ibuf/ibuf0ibuf.c
@@ -172,13 +172,15 @@ because ibuf merge is done to a page when it is read in, and it is
still physically like the index page even if the index would have been
dropped! So, there seems to be no problem. */
+#ifdef UNIV_DEBUG
/**********************************************************************
Validates the ibuf data structures when the caller owns ibuf_mutex. */
-
+static
ibool
ibuf_validate_low(void);
/*===================*/
/* out: TRUE if ok */
+#endif /* UNIV_DEBUG */
/**********************************************************************
Sets the flag in the current OS thread local storage denoting that it is
@@ -2753,9 +2755,10 @@ reset_bit:
#endif
}
+#ifdef UNIV_DEBUG
/**********************************************************************
Validates the ibuf data structures when the caller owns ibuf_mutex. */
-
+static
ibool
ibuf_validate_low(void)
/*===================*/
@@ -2782,6 +2785,7 @@ ibuf_validate_low(void)
return(TRUE);
}
+#endif /* UNIV_DEBUG */
/**********************************************************************
Prints info of ibuf. */