~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unique.cc

  • Committer: Monty Taylor
  • Date: 2010-10-30 01:19:00 UTC
  • mto: (1892.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1893.
  • Revision ID: mordred@inaugust.com-20101030011900-2tdt8w9vt7a6pbk0
Fixed things to make things compile with clang

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
*/
139
139
 
140
140
double Unique::get_use_cost(uint32_t *, uint32_t nkeys, uint32_t key_size,
141
 
                            size_t max_in_memory_size)
 
141
                            size_t max_in_memory_size_arg)
142
142
{
143
143
  ulong max_elements_in_tree;
144
144
  ulong last_tree_elems;
145
145
  double result;
146
146
 
147
 
  max_elements_in_tree= ((ulong) max_in_memory_size /
 
147
  max_elements_in_tree= ((ulong) max_in_memory_size_arg /
148
148
                         ALIGN_SIZE(sizeof(TREE_ELEMENT)+key_size));
149
149
 
150
150
  last_tree_elems= nkeys % max_elements_in_tree;