~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.cc

  • Committer: Brian Aker
  • Date: 2008-08-19 22:40:04 UTC
  • Revision ID: brian@tangent.org-20080819224004-tcgp7mptob0jkfmc
More Table cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
2246
2246
    /* Calculate cost of full index read for the shortest covering index */
2247
2247
    if (!head->covering_keys.is_clear_all())
2248
2248
    {
2249
 
      int key_for_use= find_shortest_key(head, &head->covering_keys);
 
2249
      int key_for_use= head->find_shortest_key(&head->covering_keys);
2250
2250
      double key_read_time= 
2251
2251
        param.table->file->index_only_read_time(key_for_use, 
2252
2252
                                                rows2double(records)) +