MySQL 8.3.0
Source Code Documentation
fut0fut.h File Reference

File-based utilities. More...

#include "univ.i"
#include "fil0fil.h"
#include "mtr0mtr.h"
#include "fut0fut.ic"

Go to the source code of this file.

Functions

static bytefut_get_ptr (space_id_t space, const page_size_t &page_size, fil_addr_t addr, rw_lock_type_t rw_latch, mtr_t *mtr, buf_block_t **ptr_block=nullptr)
 Gets a pointer to a file address and latches the page. More...
 

Detailed Description

File-based utilities.

Created 12/13/1995 Heikki Tuuri

Function Documentation

◆ fut_get_ptr()

static byte * fut_get_ptr ( space_id_t  space,
const page_size_t page_size,
fil_addr_t  addr,
rw_lock_type_t  rw_latch,
mtr_t mtr,
buf_block_t **  ptr_block = nullptr 
)
inlinestatic

Gets a pointer to a file address and latches the page.

Parameters
[in]spaceSpace id
[in]page_sizePage size
[in]addrFile address
[in]rw_latchRW_S_LATCH, RW_X_LATCH, RW_SX_LATCH
[out]ptr_blockFile page
[in,out]mtrMini-transaction
Returns
pointer to a byte in (*ptr_block)->frame; the *ptr_block is bufferfixed and latched