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

« back to all changes in this revision

Viewing changes to storage/innobase/row/row0upd.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
430
430
}
431
431
 
432
432
/***************************************************************
433
 
Replaces the new column values stored in the update vector to the record
434
 
given. No field size changes are allowed. This function is used only for
435
 
a clustered index */
 
433
Replaces the new column values stored in the update vector to the
 
434
record given. No field size changes are allowed. This function is
 
435
usually invoked on a clustered index. The only use case for a
 
436
secondary index is row_ins_sec_index_entry_by_modify() or its
 
437
counterpart in ibuf_insert_to_index_page(). */
436
438
 
437
439
void
438
440
row_upd_rec_in_place(
2037
2039
        upd_node_t*     node;
2038
2040
        btr_pcur_t*     pcur;
2039
2041
        btr_cur_t*      btr_cur;
 
2042
#ifdef UNIV_DEBUG
2040
2043
        ulint           err;
 
2044
#endif /* UNIV_DEBUG */
2041
2045
        mem_heap_t*     heap            = NULL;
2042
2046
        ulint           offsets_[REC_OFFS_NORMAL_SIZE];
2043
2047
        *offsets_ = (sizeof offsets_) / sizeof *offsets_;
2074
2078
        ut_ad(node->cmpl_info & UPD_NODE_NO_ORD_CHANGE);
2075
2079
        ut_ad(node->select_will_do_update);
2076
2080
 
2077
 
        err = btr_cur_update_in_place(BTR_NO_LOCKING_FLAG, btr_cur,
2078
 
                                      node->update, node->cmpl_info,
2079
 
                                      thr, mtr);
 
2081
#ifdef UNIV_DEBUG
 
2082
        err =
 
2083
#endif /* UNIV_DEBUG */
 
2084
        btr_cur_update_in_place(BTR_NO_LOCKING_FLAG, btr_cur,
 
2085
                                node->update, node->cmpl_info,
 
2086
                                thr, mtr);
2080
2087
        ut_ad(err == DB_SUCCESS);
2081
2088
}