~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/sel_imerge.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 17:21:46 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622172146-fmtxxu9xt3ddmnm5
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    uint32_t old_elements= (trees_end - trees);
48
48
    uint32_t old_size= sizeof(optimizer::SEL_TREE**) * old_elements;
49
49
    uint32_t new_size= old_size * realloc_ratio;
50
 
    optimizer::SEL_TREE **new_trees= NULL;
51
 
    new_trees= (optimizer::SEL_TREE**) param->mem_root->alloc(new_size);
 
50
    optimizer::SEL_TREE** new_trees= (optimizer::SEL_TREE**) param->mem_root->alloc(new_size);
52
51
    memcpy(new_trees, trees, old_size);
53
52
    trees= new_trees;
54
53
    trees_next= trees + old_elements;