Drizzled Public API Documentation

fut0fut.h File Reference

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

Go to the source code of this file.

Functions

UNIV_INLINE byte * fut_get_ptr (ulint space, ulint zip_size, fil_addr_t addr, ulint rw_latch, mtr_t *mtr)

Detailed Description

File-based utilities

Created 12/13/1995 Heikki Tuuri

Definition in file fut0fut.h.


Function Documentation

UNIV_INLINE byte* fut_get_ptr ( ulint  space,
ulint  zip_size,
fil_addr_t  addr,
ulint  rw_latch,
mtr_t mtr 
)

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

Returns:
pointer to a byte in a frame; the file page in the frame is bufferfixed and latched in: mtr handle
Parameters:
spacein: space id
zip_sizein: compressed page size in bytes or 0 for uncompressed pages
addrin: file address
rw_latchin: RW_S_LATCH, RW_X_LATCH

Referenced by flst_add_first(), flst_add_last(), flst_cut_end(), flst_insert_after(), flst_insert_before(), flst_remove(), flst_validate(), fsp_print(), and fsp_validate().