~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-04-11 02:32:57 UTC
  • mto: (971.1.63 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: osullivan.padraig@gmail.com-20090411023257-2pz255xvtzfhrart
Added new functions for adding a bitset in a thread-safe way. I created a
class which simply consists of 2 class members: 1) a lock and 2) a
std::bitset.

Also, moved some helper functions to a separate new file (sql_bitmap.cc).

Nearly all instances of My_BITMAP are replaced now. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
394
394
{
395
395
  table->tmp_set.reset();
396
396
  table->mark_columns_used_by_index_no_reset(idx, &table->tmp_set);
397
 
  /* Check if 2 bitsets are overlapping */
398
 
  bitset<MAX_FIELDS> tmp= *fields & table->tmp_set;
399
 
  if (tmp.any())
 
397
  if (isBitmapOverlapping(fields, &table->tmp_set))
400
398
    return 1;
401
399
 
402
400
  /*