~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid-security

« back to all changes in this revision

Viewing changes to storage/innobase/include/btr0cur.ic

  • Committer: Package Import Robot
  • Author(s): Seth Arnold
  • Date: 2013-04-18 17:04:15 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130418170415-0ogqujl7eqweolxq
Tags: 5.1.69-0ubuntu0.10.04.1
* SECURITY UPDATE: Update to 5.1.69 to fix security issues (LP: #1170516)
  - http://www.oracle.com/technetwork/topics/security/cpuapr2013-1899555.html

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
#include "btr0btr.h"
10
10
 
 
11
#ifdef UNIV_DEBUG
 
12
# define LIMIT_OPTIMISTIC_INSERT_DEBUG(NREC, CODE)\
 
13
if (btr_cur_limit_optimistic_insert_debug\
 
14
    && (NREC) >= (ulint)btr_cur_limit_optimistic_insert_debug) {\
 
15
        CODE;\
 
16
}
 
17
#else
 
18
# define LIMIT_OPTIMISTIC_INSERT_DEBUG(NREC, CODE)
 
19
#endif /* UNIV_DEBUG */
 
20
 
11
21
/*************************************************************
12
22
Returns the page cursor component of a tree cursor. */
13
23
UNIV_INLINE
100
110
 
101
111
        page = btr_cur_get_page(cursor);
102
112
 
 
113
        LIMIT_OPTIMISTIC_INSERT_DEBUG(page_get_n_recs(page) * 2,
 
114
                                      return(FALSE));
 
115
 
103
116
        if ((page_get_data_size(page) < BTR_CUR_PAGE_COMPRESS_LIMIT)
104
117
            || ((btr_page_get_next(page, mtr) == FIL_NULL)
105
118
                && (btr_page_get_prev(page, mtr) == FIL_NULL))) {