summaryrefslogtreecommitdiff
path: root/storage/innobase/include/fsp0fsp.ic
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/include/fsp0fsp.ic')
-rw-r--r--storage/innobase/include/fsp0fsp.ic24
1 files changed, 24 insertions, 0 deletions
diff --git a/storage/innobase/include/fsp0fsp.ic b/storage/innobase/include/fsp0fsp.ic
new file mode 100644
index 00000000000..89cd9263bd6
--- /dev/null
+++ b/storage/innobase/include/fsp0fsp.ic
@@ -0,0 +1,24 @@
+/******************************************************
+File space management
+
+(c) 1995 Innobase Oy
+
+Created 12/18/1995 Heikki Tuuri
+*******************************************************/
+
+/***************************************************************************
+Checks if a page address is an extent descriptor page address. */
+UNIV_INLINE
+ibool
+fsp_descr_page(
+/*===========*/
+ /* out: TRUE if a descriptor page */
+ ulint page_no)/* in: page number */
+{
+ if (page_no % XDES_DESCRIBED_PER_PAGE == FSP_XDES_OFFSET) {
+
+ return(TRUE);
+ }
+
+ return(FALSE);
+}