~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-22 08:59:41 UTC
  • mto: (2.1.3 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100522085941-4x62clk1ovyip4m5
Tags: upstream-5.1.47
ImportĀ upstreamĀ versionĀ 5.1.47

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
 
141
141
        dfield = dtuple_get_nth_field(row, dict_col_get_no(col));
142
142
 
143
 
        ptr = mem_heap_alloc(heap, DATA_ROW_ID_LEN);
 
143
        ptr = mem_heap_zalloc(heap, DATA_ROW_ID_LEN);
144
144
 
145
145
        dfield_set_data(dfield, ptr, DATA_ROW_ID_LEN);
146
146
 
151
151
        col = dict_table_get_sys_col(table, DATA_TRX_ID);
152
152
 
153
153
        dfield = dtuple_get_nth_field(row, dict_col_get_no(col));
154
 
        ptr = mem_heap_alloc(heap, DATA_TRX_ID_LEN);
 
154
        ptr = mem_heap_zalloc(heap, DATA_TRX_ID_LEN);
155
155
 
156
156
        dfield_set_data(dfield, ptr, DATA_TRX_ID_LEN);
157
157
 
162
162
        col = dict_table_get_sys_col(table, DATA_ROLL_PTR);
163
163
 
164
164
        dfield = dtuple_get_nth_field(row, dict_col_get_no(col));
165
 
        ptr = mem_heap_alloc(heap, DATA_ROLL_PTR_LEN);
 
165
        ptr = mem_heap_zalloc(heap, DATA_ROLL_PTR_LEN);
166
166
 
167
167
        dfield_set_data(dfield, ptr, DATA_ROLL_PTR_LEN);
168
168
}