InnoDB Plugin  1.0
Functions
lock0priv.ic File Reference
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE ulint lock_get_type_low (const lock_t *lock)
UNIV_INLINE trx_id_t lock_clust_rec_some_has_impl (const rec_t *rec, const dict_index_t *index, const ulint *offsets)

Detailed Description

Lock module internal inline methods.

Created July 16, 2007 Vasil Dimov

Function Documentation

UNIV_INLINE trx_id_t lock_clust_rec_some_has_impl ( const rec_t *  rec,
const dict_index_t index,
const ulint *  offsets 
)

Checks if some transaction has an implicit x-lock on a record in a clustered index.

Returns
transaction id of the transaction which has the x-lock, or 0
Parameters
recin: user record
indexin: clustered index
offsetsin: rec_get_offsets(rec, index)
UNIV_INLINE ulint lock_get_type_low ( const lock_t lock)

Gets the type of a lock.

Returns
LOCK_TABLE or LOCK_REC
Parameters
lockin: lock