~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort.cc

  • Committer: Monty Taylor
  • Date: 2009-05-09 22:57:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090509225725-bphxydmrz1poxbz7
Moved some things to the API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
920
920
{
921
921
  register SORT_FIELD *sort_field;
922
922
  Table *table=param->sort_form;
923
 
  MY_BITMAP *bitmap= table->read_set;
924
923
 
925
924
  for (sort_field= param->local_sortorder ;
926
925
       sort_field != param->end ;
930
929
    if ((field= sort_field->field))
931
930
    {
932
931
      if (field->table == table)
933
 
      bitmap_set_bit(bitmap, field->field_index);
 
932
        table->setReadSet(field->field_index);
934
933
    }
935
934
    else
936
935
    {                                           // Item
944
943
    SORT_ADDON_FIELD *addonf= param->addon_field;
945
944
    Field *field;
946
945
    for ( ; (field= addonf->field) ; addonf++)
947
 
      bitmap_set_bit(bitmap, field->field_index);
 
946
      table->setReadSet(field->field_index);
948
947
  }
949
948
  else
950
949
  {