~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-01-07 09:27:07 UTC
  • Revision ID: brian@tangent.org-20090107092707-bn67qpdllfcyh3j9
Removing dead field translator code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/lock0iter.h
 
1
/******************************************************
21
2
Lock queue iterator type and function prototypes.
22
3
 
 
4
(c) 2007 Innobase Oy
 
5
 
23
6
Created July 16, 2007 Vasil Dimov
24
7
*******************************************************/
25
8
 
37
20
        ulint           bit_no;
38
21
} lock_queue_iterator_t;
39
22
 
40
 
/*******************************************************************//**
 
23
/***********************************************************************
41
24
Initialize lock queue iterator so that it starts to iterate from
42
25
"lock". bit_no specifies the record number within the heap where the
43
26
record is stored. It can be undefined (ULINT_UNDEFINED) in two cases:
50
33
void
51
34
lock_queue_iterator_reset(
52
35
/*======================*/
53
 
        lock_queue_iterator_t*  iter,   /*!< out: iterator */
54
 
        const lock_t*           lock,   /*!< in: lock to start from */
55
 
        ulint                   bit_no);/*!< in: record number in the
 
36
        lock_queue_iterator_t*  iter,   /* out: iterator */
 
37
        const lock_t*           lock,   /* in: lock to start from */
 
38
        ulint                   bit_no);/* in: record number in the
56
39
                                        heap */
57
40
 
58
 
/*******************************************************************//**
 
41
/***********************************************************************
59
42
Gets the previous lock in the lock queue, returns NULL if there are no
60
43
more locks (i.e. the current lock is the first one). The iterator is
61
 
receded (if not-NULL is returned).
62
 
@return previous lock or NULL */
 
44
receded (if not-NULL is returned). */
63
45
 
64
46
const lock_t*
65
47
lock_queue_iterator_get_prev(
66
48
/*=========================*/
67
 
        lock_queue_iterator_t*  iter);  /*!< in/out: iterator */
 
49
                                        /* out: previous lock or NULL */
 
50
        lock_queue_iterator_t*  iter);  /* in/out: iterator */
68
51
 
69
52
#endif /* lock0iter_h */