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

« back to all changes in this revision

Viewing changes to storage/innobase/btr/btr0pcur.c

  • 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:
339
339
        return(FALSE);
340
340
}
341
341
 
342
 
/******************************************************************
343
 
If the latch mode of the cursor is BTR_LEAF_SEARCH or BTR_LEAF_MODIFY,
344
 
releases the page latch and bufferfix reserved by the cursor.
345
 
NOTE! In the case of BTR_LEAF_MODIFY, there should not exist changes
346
 
made by the current mini-transaction to the data protected by the
347
 
cursor latch, as then the latch must not be released until mtr_commit. */
348
 
 
349
 
void
350
 
btr_pcur_release_leaf(
351
 
/*==================*/
352
 
        btr_pcur_t*     cursor, /* in: persistent cursor */
353
 
        mtr_t*          mtr)    /* in: mtr */
354
 
{
355
 
        page_t* page;
356
 
 
357
 
        ut_a(cursor->pos_state == BTR_PCUR_IS_POSITIONED);
358
 
        ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
359
 
 
360
 
        page = btr_cur_get_page(btr_pcur_get_btr_cur(cursor));
361
 
 
362
 
        btr_leaf_page_release(page, cursor->latch_mode, mtr);
363
 
 
364
 
        cursor->latch_mode = BTR_NO_LATCHES;
365
 
 
366
 
        cursor->pos_state = BTR_PCUR_WAS_POSITIONED;
367
 
}
368
 
 
369
342
/*************************************************************
370
343
Moves the persistent cursor to the first record on the next page. Releases the
371
344
latch on the current page, and bufferunfixes it. Note that there must not be