~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/lock0iter.h

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#include "lock0types.h"
14
14
 
15
15
typedef struct lock_queue_iterator_struct {
16
 
        lock_t* current_lock;
 
16
        const lock_t*   current_lock;
17
17
        /* In case this is a record lock queue (not table lock queue)
18
18
        then bit_no is the record number within the heap in which the
19
19
        record is stored. */
20
 
        ulint   bit_no;
 
20
        ulint           bit_no;
21
21
} lock_queue_iterator_t;
22
22
 
23
23
/***********************************************************************
29
29
   bit_no is calculated in this function by using
30
30
   lock_rec_find_set_bit(). There is exactly one bit set in the bitmap
31
31
   of a wait lock. */
32
 
 
 
32
UNIV_INTERN
33
33
void
34
34
lock_queue_iterator_reset(
35
35
/*======================*/
36
36
        lock_queue_iterator_t*  iter,   /* out: iterator */
37
 
        lock_t*                 lock,   /* in: lock to start from */
 
37
        const lock_t*           lock,   /* in: lock to start from */
38
38
        ulint                   bit_no);/* in: record number in the
39
39
                                        heap */
40
40
 
43
43
more locks (i.e. the current lock is the first one). The iterator is
44
44
receded (if not-NULL is returned). */
45
45
 
46
 
lock_t*
 
46
const lock_t*
47
47
lock_queue_iterator_get_prev(
48
48
/*=========================*/
49
49
                                        /* out: previous lock or NULL */