~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_create.cc

Added code necessary for building plugins dynamically.
Merged in changes from lifeless to allow autoreconf to work.
Touching plugin.ini files now triggers a rebuid - so config/autorun.sh is no
longer required to be run after touching those.
Removed the duplicate plugin names - also removed the issue that getting them
different would silently fail weirdly later.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <algorithm>
23
23
 
24
24
using namespace std;
25
 
using namespace drizzled;
26
25
 
27
26
static int keys_compare(heap_rb_param *param, unsigned char *key1, unsigned char *key2);
28
27
static void init_block(HP_BLOCK *block,uint32_t chunk_length, uint32_t min_records,
406
405
  if (records_in_block < 10 && max_records)
407
406
    records_in_block= 10;
408
407
  if (!records_in_block || records_in_block*recbuffer >
409
 
      (internal::my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS))
410
 
    records_in_block= (internal::my_default_record_cache_size - sizeof(HP_PTRS) *
 
408
      (my_default_record_cache_size-sizeof(HP_PTRS)*HP_MAX_LEVELS))
 
409
    records_in_block= (my_default_record_cache_size - sizeof(HP_PTRS) *
411
410
                      HP_MAX_LEVELS) / recbuffer + 1;
412
411
  block->records_in_block= records_in_block;
413
412
  block->recbuffer= recbuffer;
442
441
  }
443
442
  else
444
443
  {
445
 
    result= errno=ENOENT;
 
444
    result= my_errno=ENOENT;
446
445
  }
447
446
  pthread_mutex_unlock(&THR_LOCK_heap);
448
447
  return(result);