Commit f29b4b14 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 bdd9c505
/****************************************************** /******************************************************
Definition of the lock module internal structures. Lock module internal structures and methods.
(c) 2007 Innobase Oy (c) 2007 Innobase Oy
...@@ -63,4 +63,26 @@ struct lock_struct { ...@@ -63,4 +63,26 @@ struct lock_struct {
} un_member; } 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 */ #endif /* lock0priv_h */
...@@ -1065,7 +1065,7 @@ lock_rec_set_nth_bit( ...@@ -1065,7 +1065,7 @@ lock_rec_set_nth_bit(
/************************************************************************** /**************************************************************************
Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED, Looks for a set bit in a record lock bitmap. Returns ULINT_UNDEFINED,
if none found. */ if none found. */
static
ulint ulint
lock_rec_find_set_bit( lock_rec_find_set_bit(
/*==================*/ /*==================*/
...@@ -1357,7 +1357,7 @@ lock_rec_copy( ...@@ -1357,7 +1357,7 @@ lock_rec_copy(
/************************************************************************* /*************************************************************************
Gets the previous record lock set on a record. */ Gets the previous record lock set on a record. */
static
lock_t* lock_t*
lock_rec_get_prev( 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