~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2010-11-06 05:47:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1909.
  • Revision ID: brian@tangent.org-20101106054712-jwxd8e0s0s3nm7qn
Merge in encapsulations in filesort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1677
1677
  return false;
1678
1678
}
1679
1679
 
 
1680
 
 
1681
void Table::filesort_free_buffers(bool full)
 
1682
{
 
1683
  if (sort.record_pointers)
 
1684
  {
 
1685
    free((unsigned char*) sort.record_pointers);
 
1686
    sort.record_pointers=0;
 
1687
  }
 
1688
  if (full)
 
1689
  {
 
1690
    if (sort.sort_keys )
 
1691
    {
 
1692
      if ((unsigned char*) sort.sort_keys)
 
1693
        free((unsigned char*) sort.sort_keys);
 
1694
      sort.sort_keys= 0;
 
1695
    }
 
1696
    if (sort.buffpek)
 
1697
    {
 
1698
      if ((unsigned char*) sort.buffpek)
 
1699
        free((unsigned char*) sort.buffpek);
 
1700
      sort.buffpek= 0;
 
1701
      sort.buffpek_len= 0;
 
1702
    }
 
1703
  }
 
1704
 
 
1705
  if (sort.addon_buf)
 
1706
  {
 
1707
    free((char *) sort.addon_buf);
 
1708
    free((char *) sort.addon_field);
 
1709
    sort.addon_buf=0;
 
1710
    sort.addon_field=0;
 
1711
  }
 
1712
}
 
1713
 
1680
1714
} /* namespace drizzled */