~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_create.cc

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
       Calculate the very maximum number of rows (if everything was one chunk) and
277
277
       then take either that value or configured max_records (pick smallest one)
278
278
    */
279
 
    max_rows_for_stated_memory= (ha_rows) (create_info->max_table_size /
 
279
    max_rows_for_stated_memory= (uint32_t)(create_info->max_table_size /
280
280
      (keys_memory_size + chunk_length));
281
281
    max_records = ((max_records && max_records < max_rows_for_stated_memory) ?
282
282
                      max_records : max_rows_for_stated_memory);