~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/heap.h

  • Committer: Brian Aker
  • Date: 2010-08-13 00:46:27 UTC
  • mto: (1711.1.17 build)
  • mto: This revision was merged to the branch mainline in revision 1710.
  • Revision ID: brian@tangent.org-20100813004627-zztrtq1j1r7zsm3w
Switch to using vector.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <plugin/myisam/my_handler.h>
28
28
#include "drizzled/tree.h"
29
29
 
 
30
#include <vector>
 
31
 
30
32
        /* defines used by heap-funktions */
31
33
 
32
34
#define HP_MAX_LEVELS   4               /* 128^5 records is enough */
265
267
  int lastinx,errkey;
266
268
  int  mode;                            /* Mode of file (READONLY..) */
267
269
  uint32_t opt_flag,update;
268
 
  unsigned char *lastkey;                       /* Last used key with rkey */
269
 
  unsigned char *recbuf;                         /* Record buffer for rb-tree keys */
 
270
  std::vector <unsigned char> lastkey;                  /* Last used key with rkey */
 
271
  std::vector <unsigned char> recbuf;                         /* Record buffer for rb-tree keys */
270
272
  enum drizzled::ha_rkey_function last_find_flag;
271
273
  drizzled::TREE_ELEMENT *parents[drizzled::MAX_TREE_HEIGHT+1];
272
274
  drizzled::TREE_ELEMENT **last_pos;