39
39
Gets a buffer page and declares its latching order level. */
44
ulint space, /*!< in: space id */
45
ulint zip_size, /*!< in: compressed page size in bytes
46
or 0 for uncompressed pages */
47
ulint page_no, /*!< in: page number */
48
ulint mode, /*!< in: latch mode */
49
mtr_t* mtr) /*!< in: mtr */
44
ulint space, /*!< in: space id */
45
ulint zip_size, /*!< in: compressed page size in bytes
46
or 0 for uncompressed pages */
47
ulint page_no, /*!< in: page number */
48
ulint mode, /*!< in: latch mode */
49
const char* file, /*!< in: file name */
50
ulint line, /*!< in: line where called */
51
mtr_t* mtr) /*!< in/out: mtr */
51
53
buf_block_t* block;
53
block = buf_page_get(space, zip_size, page_no, mode, mtr);
55
block = buf_page_get_gen(space, zip_size, page_no, mode,
56
NULL, BUF_GET, file, line, mtr);
55
58
if (mode != RW_NO_LATCH) {
63
66
/**************************************************************//**
64
Gets a buffer page and declares its latching order level. */
69
ulint space, /*!< in: space id */
70
ulint zip_size, /*!< in: compressed page size in bytes
71
or 0 for uncompressed pages */
72
ulint page_no, /*!< in: page number */
73
ulint mode, /*!< in: latch mode */
74
mtr_t* mtr) /*!< in: mtr */
76
return(buf_block_get_frame(btr_block_get(space, zip_size, page_no,
80
/**************************************************************//**
81
67
Sets the index id field of a page. */