summaryrefslogtreecommitdiff
path: root/innobase/include/page0page.h
diff options
context:
space:
mode:
Diffstat (limited to 'innobase/include/page0page.h')
-rw-r--r--innobase/include/page0page.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/innobase/include/page0page.h b/innobase/include/page0page.h
index b5e33af5bc0..04f771c3abd 100644
--- a/innobase/include/page0page.h
+++ b/innobase/include/page0page.h
@@ -666,6 +666,15 @@ page_rec_validate(
/* out: TRUE if ok */
rec_t* rec); /* in: record on the page */
/*******************************************************************
+Checks that the first directory slot points to the infimum record and
+the last to the supremum. This function is intended to track if the
+bug fixed in 4.0.14 has caused corruption to users' databases. */
+
+void
+page_check_dir(
+/*===========*/
+ page_t* page); /* in: index page */
+/*******************************************************************
This function checks the consistency of an index page when we do not
know the index. This is also resilient so that this should never crash
even if the page is total garbage. */