Drizzled Public API Documentation

lock0priv.h File Reference
#include "univ.i"
#include "dict0types.h"
#include "hash0hash.h"
#include "trx0types.h"
#include "ut0lst.h"

Go to the source code of this file.

Classes

struct  lock_table_struct
struct  lock_rec_struct
struct  lock_struct

Typedefs

typedef struct lock_table_struct lock_table_t
typedef struct lock_rec_struct lock_rec_t

Functions

UNIV_INLINE ulint lock_get_type_low (const lock_t *lock)
UNIV_INTERN const lock_tlock_rec_get_prev (const lock_t *in_lock, ulint heap_no)

Detailed Description

Lock module internal structures and methods.

Created July 12, 2007 Vasil Dimov

Definition in file lock0priv.h.


Typedef Documentation

typedef struct lock_rec_struct lock_rec_t

Record lock for a page

Definition at line 55 of file lock0priv.h.

A table lock

Definition at line 44 of file lock0priv.h.


Function Documentation

UNIV_INTERN const lock_t* lock_rec_get_prev ( const lock_t in_lock,
ulint  heap_no 
)

Gets the previous record lock set on a record.

Returns:
previous lock on the same record, NULL if none exists in: heap number of the record

Gets the previous record lock set on a record.

Returns:
previous lock on the same record, NULL if none exists
Parameters:
in_lockin: record lock
heap_noin: heap number of the record

Definition at line 1314 of file lock0lock.cc.

References lock_get_type_low(), LOCK_REC, lock_rec_get_prev(), lock_rec_struct::page_no, lock_struct::rec_lock, lock_rec_struct::space, lock_struct::un_member, and ut_ad.

Referenced by lock_queue_iterator_get_prev(), and lock_rec_get_prev().