~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/read/read0read.c

  • Committer: Brian Aker
  • Date: 2010-12-27 19:16:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2036.
  • Revision ID: brian@tangent.org-20101227191617-b1jesi0g2okc06nj
Improvement for decimal in encapsulation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
{
150
150
        read_view_t*    view;
151
151
 
152
 
        view = static_cast<read_view_t *>(mem_heap_alloc(heap, sizeof(read_view_t)));
 
152
        view = mem_heap_alloc(heap, sizeof(read_view_t));
153
153
 
154
154
        view->n_trx_ids = n;
155
 
        view->trx_ids = static_cast<trx_id_t *>(mem_heap_alloc(heap, n * sizeof *view->trx_ids));
 
155
        view->trx_ids = mem_heap_alloc(heap, n * sizeof *view->trx_ids);
156
156
 
157
157
        return(view);
158
158
}