drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
lock0priv.h File Reference
#include "univ.i"
#include "dict0types.h"
#include "hash0hash.h"
#include "trx0types.h"
#include "ut0lst.h"
Include dependency graph for lock0priv.h:
This graph shows which files directly or indirectly include this file:

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_t * lock_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.

Macro Definition Documentation

◆ lock0priv_h

#define lock0priv_h

Definition at line 28 of file lock0priv.h.

Typedef Documentation

◆ lock_rec_t

typedef struct lock_rec_struct lock_rec_t

Record lock for a page

Definition at line 55 of file lock0priv.h.

◆ lock_table_t

A table lock

Definition at line 44 of file lock0priv.h.

Function Documentation

◆ lock_get_type_low()

UNIV_INLINE ulint lock_get_type_low ( const lock_t * lock)

Gets the type of a lock.

Returns
LOCK_TABLE or LOCK_REC in: lock

◆ lock_rec_get_prev()

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.