~stewart/drizzle/seapitester-improve

« back to all changes in this revision

Viewing changes to plugin/memory/hp_block.cc

  • Committer: Mark Atwood
  • Date: 2011-06-16 15:05:43 UTC
  • mfrom: (2318.4.15 refactor10)
  • Revision ID: me@mark.atwood.name-20110616150543-ydrgmzb685nzcjr9
mergeĀ lp:~olafvdspek/drizzle/refactor10

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    and my_default_record_cache_size we get about 1/128 unused memory.
79
79
   */
80
80
  *alloc_length=sizeof(HP_PTRS)*i+block->records_in_block* block->recbuffer;
81
 
  if (!(root=(HP_PTRS*) malloc(*alloc_length)))
82
 
    return 1;
 
81
  root=(HP_PTRS*) malloc(*alloc_length);
83
82
 
84
83
  if (i == 0)
85
84
  {