~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Jay Pipes
  • Date: 2009-08-20 20:29:18 UTC
  • mfrom: (1103.6.6 refactor-bitmap-class)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: jpipes@serialcoder-20090820202918-39ey4uyvwh9z4ya5
Merge Padraig's refactoring of MY_BITMAP struct to a proper class interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
    FALSE  Otherwise
398
398
*/
399
399
 
400
 
bool is_key_used(Table *table, uint32_t idx, const MY_BITMAP *fields)
 
400
bool is_key_used(Table *table, uint32_t idx, const MyBitmap *fields)
401
401
{
402
 
  bitmap_clear_all(&table->tmp_set);
 
402
  table->tmp_set.clearAll();
403
403
  table->mark_columns_used_by_index_no_reset(idx, &table->tmp_set);
404
404
  if (bitmap_is_overlapping(&table->tmp_set, fields))
405
405
    return 1;