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

« back to all changes in this revision

Viewing changes to storage/innobase/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:
210
210
        ulint           latch_mode,     /* in: BTR_SEARCH_LEAF, ... */
211
211
        btr_pcur_t*     cursor,         /* in: detached persistent cursor */
212
212
        mtr_t*          mtr);           /* in: mtr */
213
 
/******************************************************************
214
 
If the latch mode of the cursor is BTR_LEAF_SEARCH or BTR_LEAF_MODIFY,
215
 
releases the page latch and bufferfix reserved by the cursor.
216
 
NOTE! In the case of BTR_LEAF_MODIFY, there should not exist changes
217
 
made by the current mini-transaction to the data protected by the
218
 
cursor latch, as then the latch must not be released until mtr_commit. */
219
 
 
220
 
void
221
 
btr_pcur_release_leaf(
222
 
/*==================*/
223
 
        btr_pcur_t*     cursor, /* in: persistent cursor */
224
 
        mtr_t*          mtr);   /* in: mtr */
225
213
/*************************************************************
226
214
Gets the rel_pos field for a cursor whose position has been stored. */
227
215
UNIV_INLINE
248
236
        btr_pcur_t*     cursor);        /* in: persistent cursor */
249
237
/******************************************************************
250
238
Commits the pcur mtr and sets the pcur latch mode to BTR_NO_LATCHES,
251
 
that is, the cursor becomes detached. If there have been modifications
252
 
to the page where pcur is positioned, this can be used instead of
253
 
btr_pcur_release_leaf. Function btr_pcur_store_position should be used
254
 
before calling this, if restoration of cursor is wanted later. */
 
239
that is, the cursor becomes detached.
 
240
Function btr_pcur_store_position should be used before calling this,
 
241
if restoration of cursor is wanted later. */
255
242
UNIV_INLINE
256
243
void
257
244
btr_pcur_commit(