MySQL 9.1.0
Source Code Documentation
fut0fut.ic File Reference

File-based utilities. More...

#include "buf0buf.h"
#include "sync0rw.h"

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)
 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 
)
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
[in,out]mtrMini-transaction
[out]ptr_blockFile page
Returns
pointer to a byte in (*ptr_block)->frame; the *ptr_block is bufferfixed and latched