summaryrefslogtreecommitdiff
path: root/storage/innobase/include/page0page.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-12-11 18:04:34 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-02-13 18:19:14 +0200
commitd00185c40d59ee41e380dae87bbed912baea1c0c (patch)
tree4b21ac5283690695a33b55c98b77e7b9af6603ba /storage/innobase/include/page0page.h
parentb3d02a1fcf837a8ca0b3aaff20fbfecfe744c477 (diff)
downloadmariadb-git-d00185c40d59ee41e380dae87bbed912baea1c0c.tar.gz
MDEV-12353: Replace MLOG_PAGE_CREATE_RTREE, MLOG_PAGE_COMP_CREATE_RTREE
page_create(): Create normal B-tree pages. Callers that create R-tree pages will set FIL_PAGE_TYPE and reset the split sequence number afterwards. The creation of ROW_FORMAT=COMPRESSED pages is unaffected; they will be logged as compressed page images. page_create_low(): Take const buf_block_t* as a parameter. Let the callers invoke buf_block_modify_clock_inc().
Diffstat (limited to 'storage/innobase/include/page0page.h')
-rw-r--r--storage/innobase/include/page0page.h34
1 files changed, 11 insertions, 23 deletions
diff --git a/storage/innobase/include/page0page.h b/storage/innobase/include/page0page.h
index 2539e706d2b..7831195f213 100644
--- a/storage/innobase/include/page0page.h
+++ b/storage/innobase/include/page0page.h
@@ -983,21 +983,14 @@ inline
uint16_t
page_get_instant(const page_t* page);
+/** Create an uncompressed index page.
+@param[in,out] block buffer block
+@param[in,out] mtr mini-transaction
+@param[in] comp set unless ROW_FORMAT=REDUNDANT */
+void page_create(buf_block_t* block, mtr_t* mtr, bool comp);
/**********************************************************//**
-Create an uncompressed B-tree index page.
-@return pointer to the page */
-page_t*
-page_create(
-/*========*/
- buf_block_t* block, /*!< in: a buffer block where the
- page is created */
- mtr_t* mtr, /*!< in: mini-transaction handle */
- ulint comp, /*!< in: nonzero=compact page format */
- bool is_rtree); /*!< in: if creating R-tree page */
-/**********************************************************//**
-Create a compressed B-tree index page.
-@return pointer to the page */
-page_t*
+Create a compressed B-tree index page. */
+void
page_create_zip(
/*============*/
buf_block_t* block, /*!< in/out: a buffer frame
@@ -1157,15 +1150,10 @@ page_parse_delete_rec_list(
buf_block_t* block, /*!< in/out: buffer block or NULL */
dict_index_t* index, /*!< in: record descriptor */
mtr_t* mtr); /*!< in: mtr or NULL */
-/** Parses a redo log record of creating a page.
-@param[in,out] block buffer block, or NULL
-@param[in] comp nonzero=compact page format
-@param[in] is_rtree whether it is rtree page */
-void
-page_parse_create(
- buf_block_t* block,
- ulint comp,
- bool is_rtree);
+/** Create an index page.
+@param[in,out] block buffer block
+@param[in] comp nonzero=compact page format */
+void page_create_low(const buf_block_t* block, bool comp);
/************************************************************//**
Prints record contents including the data relevant only in