~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Renamed strings to mystrings, for include/lib naming consistency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        return(mach_dulint_read_much_compressed(ptr));
64
64
}
65
65
 
66
 
/**************************************************************************
67
 
Returns the start of the undo record data area. */
68
 
UNIV_INLINE
69
 
byte*
70
 
trx_undo_rec_get_ptr(
71
 
/*=================*/
72
 
                                        /* out: compiler info */
73
 
        trx_undo_rec_t* undo_rec,       /* in: undo log record */
74
 
        dulint          undo_no)        /* in: undo no read from node */
75
 
{
76
 
        return (((byte*) undo_rec) + 3
77
 
                + mach_dulint_get_much_compressed_size(undo_no));
78
 
}
79
 
 
80
66
/***************************************************************************
81
67
Copies the undo record to the heap. */
82
68
UNIV_INLINE
90
76
        ulint           len;
91
77
        trx_undo_rec_t* rec_copy;
92
78
 
93
 
        len = mach_read_from_2(undo_rec)
94
 
                - ut_align_offset(undo_rec, UNIV_PAGE_SIZE);
 
79
        len = mach_read_from_2(undo_rec) + buf_frame_align(undo_rec)
 
80
                - undo_rec;
95
81
        rec_copy = mem_heap_alloc(heap, len);
96
82
 
97
83
        ut_memcpy(rec_copy, undo_rec, len);