~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_create.cc

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <algorithm>
24
24
 
25
25
using namespace std;
 
26
using namespace drizzled;
26
27
 
27
28
static int keys_compare(heap_rb_param *param, unsigned char *key1, unsigned char *key2);
28
29
static void init_block(HP_BLOCK *block,uint32_t chunk_length, uint32_t min_records,
406
407
  if (records_in_block < 10 && max_records)
407
408
    records_in_block= 10;
408
409
  if (!records_in_block || records_in_block*recbuffer >
409
 
      (my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS))
410
 
    records_in_block= (my_default_record_cache_size - sizeof(HP_PTRS) *
 
410
      (internal::my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS))
 
411
    records_in_block= (internal::my_default_record_cache_size - sizeof(HP_PTRS) *
411
412
                      HP_MAX_LEVELS) / recbuffer + 1;
412
413
  block->records_in_block= records_in_block;
413
414
  block->recbuffer= recbuffer;