~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/uniques.cc

merge with latest from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
610
610
  bool error=1;
611
611
 
612
612
      /* Open cached file if it isn't open */
613
 
  outfile=table->sort.io_cache=(IO_CACHE*) malloc(sizeof(IO_CACHE));
 
613
  outfile=table->sort.io_cache= new IO_CACHE;
614
614
  memset(outfile, 0, sizeof(IO_CACHE));
615
615
 
616
616
  if (!outfile || (! my_b_inited(outfile) && open_cached_file(outfile,drizzle_tmpdir,TEMP_PREFIX,READ_RECORD_BUFFER, MYF(MY_WME))))
617
617
    return 1;
618
 
  reinit_io_cache(outfile,WRITE_CACHE,0L,0,0);
 
618
  reinit_io_cache(outfile, WRITE_CACHE, 0L, 0, 0);
619
619
 
620
620
  memset(&sort_param, 0, sizeof(sort_param));
621
621
  sort_param.max_rows= elements;