MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lock_t Struct Reference

#include <lock0priv.h>

Collaboration diagram for lock_t:

Public Attributes

trx_ttrx
 trx_locks
ulint type_mode
hash_node_t hash
dict_index_tindex
union {
   lock_table_t   tab_lock
   lock_rec_t   rec_lock
un_member

Detailed Description

Lock struct; protected by lock_sys->mutex

Definition at line 62 of file lock0priv.h.

Member Data Documentation

hash_node_t lock_t::hash

hash chain node for a record lock

Definition at line 72 of file lock0priv.h.

dict_index_t* lock_t::index

index for a record lock

Definition at line 74 of file lock0priv.h.

lock_rec_t lock_t::rec_lock

record lock

Definition at line 77 of file lock0priv.h.

lock_table_t lock_t::tab_lock

table lock

Definition at line 76 of file lock0priv.h.

trx_t* lock_t::trx

transaction owning the lock

Definition at line 63 of file lock0priv.h.

lock_t::trx_locks

list of the locks of the transaction

Definition at line 66 of file lock0priv.h.

ulint lock_t::type_mode

lock type, mode, LOCK_GAP or LOCK_REC_NOT_GAP, LOCK_INSERT_INTENTION, wait flag, ORed

Definition at line 68 of file lock0priv.h.

union { ... } lock_t::un_member

lock details


The documentation for this struct was generated from the following file: