InnoDB Plugin  1.0
Functions
lock0lock.ic File Reference
#include "sync0sync.h"
#include "srv0srv.h"
#include "dict0dict.h"
#include "row0row.h"
#include "trx0sys.h"
#include "trx0trx.h"
#include "buf0buf.h"
#include "page0page.h"
#include "page0cur.h"
#include "row0vers.h"
#include "que0que.h"
#include "btr0cur.h"
#include "read0read.h"
#include "log0recv.h"
Include dependency graph for lock0lock.ic:
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE ulint lock_rec_fold (ulint space, ulint page_no)
UNIV_INLINE ulint lock_rec_hash (ulint space, ulint page_no)
UNIV_INLINE ulint lock_get_min_heap_no (const buf_block_t *block)

Detailed Description

The transaction lock system

Created 5/7/1996 Heikki Tuuri

Function Documentation

UNIV_INLINE ulint lock_get_min_heap_no ( const buf_block_t block)

Gets the heap_no of the smallest user record on a page.

Returns
heap_no of smallest user record, or PAGE_HEAP_NO_SUPREMUM
Parameters
blockin: buffer block
UNIV_INLINE ulint lock_rec_fold ( ulint  space,
ulint  page_no 
)

Calculates the fold value of a page file address: used in inserting or searching for a lock in the hash table.

Returns
folded value
Parameters
spacein: space
page_noin: page number
UNIV_INLINE ulint lock_rec_hash ( ulint  space,
ulint  page_no 
)

Calculates the hash value of a page file address: used in inserting or searching for a lock in the hash table.

Returns
hashed value
Parameters
spacein: space
page_noin: page number