MySQL 9.1.0
Source Code Documentation
|
Lock module internal inline methods. More...
Functions | |
static uint32_t | lock_get_type_low (const lock_t *lock) |
Gets the type of a lock. More... | |
static trx_id_t | lock_clust_rec_some_has_impl (const rec_t *rec, const dict_index_t *index, const ulint *offsets) |
static uint32_t | lock_rec_get_n_bits (const lock_t *lock) |
static void | lock_rec_set_nth_bit (lock_t *lock, ulint i) |
Sets the nth bit of a record lock to true. More... | |
static bool | lock_rec_get_nth_bit (const lock_t *lock, ulint i) |
Gets the nth bit of a record lock. More... | |
static enum lock_mode | lock_get_mode (const lock_t *lock) |
Gets the mode of a lock. More... | |
static ulint | lock_mode_compatible (enum lock_mode mode1, enum lock_mode mode2) |
Calculates if lock mode 1 is compatible with lock mode 2. More... | |
static bool | lock_mode_stronger_or_eq (enum lock_mode mode1, enum lock_mode mode2) |
static ulint | lock_get_wait (const lock_t *lock) |
Gets the wait flag of a lock. More... | |
static void | lock_reset_lock_and_trx_wait (lock_t *lock) |
The back pointer to a waiting lock request in the transaction is set to NULL and the wait bit in lock type_mode is reset. More... | |
static bool | lock_table_has (const trx_t *trx, const dict_table_t *table, lock_mode in_mode) |
Lock module internal inline methods.
Created July 16, 2007 Vasil Dimov
|
inlinestatic |
Gets the mode of a lock.
lock | in: lock |
|
inlinestatic |
Gets the type of a lock.
lock | in: lock |
Gets the wait flag of a lock.
lock | in: lock |
Calculates if lock mode 1 is compatible with lock mode 2.
mode1 | in: lock mode |
mode2 | in: lock mode |
|
inlinestatic |
Gets the nth bit of a record lock.
[in] | lock | Record lock |
[in] | i | Index of the bit to check |
Sets the nth bit of a record lock to true.
lock | in: record lock |
i | in: index of the bit |
|
inlinestatic |
The back pointer to a waiting lock request in the transaction is set to NULL and the wait bit in lock type_mode is reset.
lock | in/out: record lock |
|
inlinestatic |