Commit 5b8c862e authored by vasil's avatar vasil

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
parent bf4eca4d
/******************************************************
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(
/*==============*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment