~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/uniques.cc

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
 
37
37
int unique_write_to_file(uchar* key,
38
 
                         element_count count __attribute__((__unused__)),
 
38
                         element_count count __attribute__((unused)),
39
39
                         Unique *unique)
40
40
{
41
41
  /*
48
48
}
49
49
 
50
50
int unique_write_to_ptrs(uchar* key,
51
 
                         element_count count __attribute__((__unused__)),
 
51
                         element_count count __attribute__((unused)),
52
52
                         Unique *unique)
53
53
{
54
54
  memcpy(unique->record_pointers, key, unique->size);
126
126
      total_buf_elems* log2(n_buffers) / TIME_FOR_COMPARE_ROWID;
127
127
*/
128
128
 
129
 
static double get_merge_buffers_cost(uint *buff_elems __attribute__((__unused__)),
 
129
static double get_merge_buffers_cost(uint *buff_elems __attribute__((unused)),
130
130
                                     uint elem_size,
131
131
                                     uint *first, uint *last)
132
132
{
609
609
    return 1;
610
610
  reinit_io_cache(outfile,WRITE_CACHE,0L,0,0);
611
611
 
612
 
  bzero((char*) &sort_param,sizeof(sort_param));
 
612
  memset((char*) &sort_param, 0, sizeof(sort_param));
613
613
  sort_param.max_rows= elements;
614
614
  sort_param.sort_form=table;
615
615
  sort_param.rec_length= sort_param.sort_length= sort_param.ref_length=