~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/rem/rem0rec.c

modified transaction docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1994, 2010, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
578
578
                                                     MEM_HEAP_DYNAMIC,
579
579
                                                     file, line);
580
580
                }
581
 
                offsets = static_cast<unsigned long *>(mem_heap_alloc(*heap, size * sizeof(ulint)));
 
581
                offsets = mem_heap_alloc(*heap, size * sizeof(ulint));
582
582
                rec_offs_set_n_alloc(offsets, size);
583
583
        }
584
584
 
1362
1362
                        mem_free(*buf);
1363
1363
                }
1364
1364
 
1365
 
                *buf = static_cast<byte *>(mem_alloc2(prefix_len, buf_size));
 
1365
                *buf = mem_alloc2(prefix_len, buf_size);
1366
1366
        }
1367
1367
 
1368
1368
        ut_memcpy(*buf, rec - area_start, prefix_len);
1488
1488
                        mem_free(*buf);
1489
1489
                }
1490
1490
 
1491
 
                *buf = static_cast<byte *>(mem_alloc2(prefix_len, buf_size));
 
1491
                *buf = mem_alloc2(prefix_len, buf_size);
1492
1492
        }
1493
1493
 
1494
1494
        memcpy(*buf, lens + 1, prefix_len);
1749
1749
void
1750
1750
rec_print(
1751
1751
/*======*/
1752
 
        FILE*                   file,   /*!< in: file where to print */
1753
 
        const rec_t*            rec,    /*!< in: physical record */
1754
 
        const dict_index_t*     index)  /*!< in: record descriptor */
 
1752
        FILE*           file,   /*!< in: file where to print */
 
1753
        const rec_t*    rec,    /*!< in: physical record */
 
1754
        dict_index_t*   index)  /*!< in: record descriptor */
1755
1755
{
1756
1756
        ut_ad(index);
1757
1757