mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 17:33:44 +01:00
Move lock_rec_find_set_bit() and lock_rec_get_prev() from
lock/lock0lock.c to include/lock0priv.h and make them non-static. They will be used in lock/lock0iter.c. Approved by: Heikki
This commit is contained in:
parent
bf4eca4dab
commit
5b8c862e1e
2 changed files with 25 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
/******************************************************
|
||||
Definition of the lock module internal structures.
|
||||
Lock module internal structures and methods.
|
||||
|
||||
(c) 2007 Innobase Oy
|
||||
|
||||
|
@ -63,4 +63,26 @@ struct lock_struct {
|
|||
} un_member;
|
||||
};
|
||||
|
||||
/**************************************************************************
|
||||
Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED,
|
||||
if none found. */
|
||||
|
||||
ulint
|
||||
lock_rec_find_set_bit(
|
||||
/*==================*/
|
||||
/* out: bit index == heap number of the record, or
|
||||
ULINT_UNDEFINED if none found */
|
||||
lock_t* lock); /* in: record lock with at least one bit set */
|
||||
|
||||
/*************************************************************************
|
||||
Gets the previous record lock set on a record. */
|
||||
|
||||
lock_t*
|
||||
lock_rec_get_prev(
|
||||
/*==============*/
|
||||
/* out: previous lock on the same record, NULL if
|
||||
none exists */
|
||||
lock_t* in_lock,/* in: record lock */
|
||||
ulint heap_no);/* in: heap number of the record */
|
||||
|
||||
#endif /* lock0priv_h */
|
||||
|
|
|
@ -1065,7 +1065,7 @@ lock_rec_set_nth_bit(
|
|||
/**************************************************************************
|
||||
Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED,
|
||||
if none found. */
|
||||
static
|
||||
|
||||
ulint
|
||||
lock_rec_find_set_bit(
|
||||
/*==================*/
|
||||
|
@ -1357,7 +1357,7 @@ lock_rec_copy(
|
|||
|
||||
/*************************************************************************
|
||||
Gets the previous record lock set on a record. */
|
||||
static
|
||||
|
||||
lock_t*
|
||||
lock_rec_get_prev(
|
||||
/*==============*/
|
||||
|
|
Loading…
Add table
Reference in a new issue