~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_share.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-10-02 19:49:54 UTC
  • mto: (1823.1.1 trunk-drizzle)
  • mto: This revision was merged to the branch mainline in revision 1824.
  • Revision ID: osullivan.padraig@gmail.com-20101002194954-2sqp7a6szfgdl11l
Removal of all MyBitmap from the code base. Compiles but test failures exist now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1683
1683
 
1684
1684
  if (blob_fields)
1685
1685
  {
1686
 
    uint32_t k, *save;
1687
 
 
1688
1686
    /* Store offsets to blob fields to find them fast */
1689
1687
    blob_field.resize(blob_fields);
1690
 
    save= &blob_field[0];
1691
 
    k= 0;
 
1688
    uint32_t *save= &blob_field[0];
 
1689
    uint32_t k= 0;
1692
1690
    for (Fields::iterator iter= field.begin(); iter != field.end()-1; iter++, k++)
1693
1691
    {
1694
1692
      if ((*iter)->flags & BLOB_FLAG)
1698
1696
 
1699
1697
  db_low_byte_first= true; // @todo Question this.
1700
1698
  column_bitmap_size= bitmap_buffer_size(fields);
1701
 
 
1702
 
  all_bitmap.resize(column_bitmap_size);
1703
 
  all_set.init(&all_bitmap[0], fields);
1704
 
  all_set.setAll();
 
1699
  //all_set.resize(fields);
 
1700
  all_set.resize(column_bitmap_size);
 
1701
  all_set.set();
1705
1702
 
1706
1703
  return local_error;
1707
1704
}
1823
1820
  int local_error;
1824
1821
  uint32_t records, bitmap_size;
1825
1822
  bool error_reported= false;
1826
 
  unsigned char *record, *bitmaps;
 
1823
  unsigned char *record= NULL;
1827
1824
  Field **field_ptr;
1828
1825
 
1829
1826
  /* Parsing of partitioning information from .frm needs session->lex set up. */
1955
1952
  /* Allocate bitmaps */
1956
1953
 
1957
1954
  bitmap_size= column_bitmap_size;
1958
 
  if (!(bitmaps= (unsigned char*) outparam.alloc_root(bitmap_size*3)))
1959
 
  {
1960
 
    goto err;
1961
 
  }
1962
 
  outparam.def_read_set.init((my_bitmap_map*) bitmaps, fields);
1963
 
  outparam.def_write_set.init((my_bitmap_map*) (bitmaps+bitmap_size), fields);
1964
 
  outparam.tmp_set.init((my_bitmap_map*) (bitmaps+bitmap_size*2), fields);
 
1955
  outparam.def_read_set.resize(fields);
 
1956
  outparam.def_write_set.resize(fields);
 
1957
  outparam.tmp_set.resize(fields);
1965
1958
  outparam.default_column_bitmaps();
1966
1959
 
1967
1960
  /* The table struct is now initialized;  Open the table */
2004
1997
    }
2005
1998
  }
2006
1999
 
2007
 
#if defined(HAVE_purify)
2008
 
  memset(bitmaps, 0, bitmap_size*3);
2009
 
#endif
2010
 
 
2011
2000
  return 0;
2012
2001
 
2013
2002
err: