~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_clear.cc

  • Committer: Patrick Crews
  • Date: 2010-09-14 20:21:03 UTC
  • mto: (1771.1.1 pcrews)
  • mto: This revision was merged to the branch mainline in revision 1772.
  • Revision ID: gleebix@gmail.com-20100914202103-1db2n0bshzafep19
Moved transaction_log tests into updated non-publisher-based tree

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/*
17
17
  remove all records from database
59
59
  for (uint32_t key=0 ; key < info->keys ; key++)
60
60
  {
61
61
    HP_KEYDEF *keyinfo = info->keydef + key;
 
62
    if (keyinfo->algorithm == HA_KEY_ALG_BTREE)
 
63
    {
 
64
      delete_tree(&keyinfo->rb_tree);
 
65
    }
 
66
    else
62
67
    {
63
68
      HP_BLOCK *block= &keyinfo->block;
64
69
      if (block->levels)