~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/btr/btr0cur.c

  • Committer: Lee Bieber
  • Date: 2010-12-23 02:14:02 UTC
  • mfrom: (2021.1.2 build)
  • Revision ID: kalebral@gmail.com-20101223021402-o4zhdsv3x8s0q6pz
Merge Stewart - Update innobase plugin to be based on innodb 1.1.4 from MySQL 5.5.8 
Merge Marisa - fixed markup in 'administrative.rst', which was throwing an error in the build

Show diffs side-by-side

added added

removed removed

Lines of Context:
1071
1071
                                not zero, the parameters index and thr
1072
1072
                                should be specified */
1073
1073
        btr_cur_t*      cursor, /*!< in: cursor on page after which to insert */
1074
 
        const dtuple_t* entry,  /*!< in: entry to insert */
 
1074
        dtuple_t*       entry,  /*!< in/out: entry to insert */
1075
1075
        que_thr_t*      thr,    /*!< in: query thread or NULL */
1076
1076
        mtr_t*          mtr,    /*!< in/out: mini-transaction */
1077
1077
        ibool*          inherit)/*!< out: TRUE if the inserted new record maybe
1744
1744
See if there is enough place in the page modification log to log
1745
1745
an update-in-place.
1746
1746
@return TRUE if enough place */
1747
 
static
 
1747
UNIV_INTERN
1748
1748
ibool
1749
1749
btr_cur_update_alloc_zip(
1750
1750
/*=====================*/
3248
3248
        performance with this code which is just an estimation. If we read
3249
3249
        this many pages before reaching slot2->page_no then we estimate the
3250
3250
        average from the pages scanned so far */
3251
 
        #define N_PAGES_READ_LIMIT      10
 
3251
#       define N_PAGES_READ_LIMIT       10
3252
3252
 
3253
3253
        page_no = slot1->page_no;
3254
3254
        level = slot1->page_level;
3277
3277
                    || btr_page_get_level_low(page) != level) {
3278
3278
 
3279
3279
                        /* The page got reused for something else */
 
3280
                        mtr_commit(&mtr);
3280
3281
                        goto inexact;
3281
3282
                }
3282
3283
 
3632
3633
        also the pages used for external storage of fields (those pages are
3633
3634
        included in index->stat_n_leaf_pages) */
3634
3635
 
3635
 
        dict_index_stat_mutex_enter(index);
3636
 
 
3637
3636
        for (j = 0; j <= n_cols; j++) {
3638
3637
                index->stat_n_diff_key_vals[j]
3639
3638
                        = ((n_diff[j]
3663
3662
                index->stat_n_diff_key_vals[j] += add_on;
3664
3663
        }
3665
3664
 
3666
 
        dict_index_stat_mutex_exit(index);
3667
 
 
3668
3665
        mem_free(n_diff);
3669
3666
        if (UNIV_LIKELY_NULL(heap)) {
3670
3667
                mem_heap_free(heap);
4072
4069
them in rec.  The extern flags in rec will have to be set beforehand.
4073
4070
The fields are stored on pages allocated from leaf node
4074
4071
file segment of the index tree.
4075
 
@return DB_SUCCESS or error */
 
4072
@return DB_SUCCESS or DB_OUT_OF_FILE_SPACE */
4076
4073
UNIV_INTERN
4077
4074
ulint
4078
4075
btr_store_big_rec_extern_fields(