~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/btr0pcur.h

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1996, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
244
244
        mtr_t*          mtr);           /*!< in: mtr */
245
245
#define btr_pcur_restore_position(l,cur,mtr)                            \
246
246
        btr_pcur_restore_position_func(l,cur,__FILE__,__LINE__,mtr)
247
 
/**************************************************************//**
248
 
If the latch mode of the cursor is BTR_LEAF_SEARCH or BTR_LEAF_MODIFY,
249
 
releases the page latch and bufferfix reserved by the cursor.
250
 
NOTE! In the case of BTR_LEAF_MODIFY, there should not exist changes
251
 
made by the current mini-transaction to the data protected by the
252
 
cursor latch, as then the latch must not be released until mtr_commit. */
253
 
UNIV_INTERN
254
 
void
255
 
btr_pcur_release_leaf(
256
 
/*==================*/
257
 
        btr_pcur_t*     cursor, /*!< in: persistent cursor */
258
 
        mtr_t*          mtr);   /*!< in: mtr */
259
247
/*********************************************************//**
260
248
Gets the rel_pos field for a cursor whose position has been stored.
261
249
@return BTR_PCUR_ON, ... */
282
270
        btr_pcur_t*     cursor);        /*!< in: persistent cursor */
283
271
/**************************************************************//**
284
272
Commits the mtr and sets the pcur latch mode to BTR_NO_LATCHES,
285
 
that is, the cursor becomes detached. If there have been modifications
286
 
to the page where pcur is positioned, this can be used instead of
287
 
btr_pcur_release_leaf. Function btr_pcur_store_position should be used
288
 
before calling this, if restoration of cursor is wanted later. */
 
273
that is, the cursor becomes detached.
 
274
Function btr_pcur_store_position should be used before calling this,
 
275
if restoration of cursor is wanted later. */
289
276
UNIV_INLINE
290
277
void
291
278
btr_pcur_commit_specify_mtr(
292
279
/*========================*/
293
280
        btr_pcur_t*     pcur,   /*!< in: persistent cursor */
294
281
        mtr_t*          mtr);   /*!< in: mtr to commit */
295
 
/**************************************************************//**
296
 
Tests if a cursor is detached: that is the latch mode is BTR_NO_LATCHES.
297
 
@return TRUE if detached */
298
 
UNIV_INLINE
299
 
ibool
300
 
btr_pcur_is_detached(
301
 
/*=================*/
302
 
        btr_pcur_t*     pcur);  /*!< in: persistent cursor */
303
282
/*********************************************************//**
304
283
Moves the persistent cursor to the next record in the tree. If no records are
305
284
left, the cursor stays 'after last in tree'.