~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

  • Committer: Brian Aker
  • Date: 2009-08-18 07:20:29 UTC
  • mfrom: (1117.1.9 merge)
  • Revision ID: brian@gaz-20090818072029-s9ch5lcmltxwidn7
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
822
822
  hp_create_info.is_dynamic= (share->row_type == ROW_TYPE_DYNAMIC);
823
823
  error= heap_create(fn_format(buff,table_name,"","",
824
824
                               MY_REPLACE_EXT|MY_UNPACK_FILENAME),
825
 
                   keys, keydef,
826
 
         column_count, columndef,
827
 
         max_key_fieldnr, key_part_size,
828
 
         share->reclength, mem_per_row_keys,
829
 
         (uint32_t) share->max_rows, (uint32_t) share->min_rows,
830
 
         &hp_create_info, internal_share);
 
825
                     keys, keydef,
 
826
                     column_count, columndef,
 
827
                     max_key_fieldnr, key_part_size,
 
828
                     share->reclength, mem_per_row_keys,
 
829
                     share->getMaxRows(), 0, // Factor out MIN
 
830
                     &hp_create_info, internal_share);
831
831
 
832
832
  free((unsigned char*) keydef);
833
833
  free((void *) columndef);
836
836
}
837
837
 
838
838
 
839
 
void ha_heap::update_create_info(HA_CREATE_INFO *create_info)
840
 
{
841
 
  table->file->info(HA_STATUS_AUTO);
842
 
  if (!(create_info->used_fields & HA_CREATE_USED_AUTO))
843
 
    create_info->auto_increment_value= stats.auto_increment_value;
844
 
  if (!(create_info->used_fields & HA_CREATE_USED_BLOCK_SIZE))
845
 
  {
846
 
    if (file->s->recordspace.is_variable_size)
847
 
      create_info->block_size= file->s->recordspace.chunk_length;
848
 
    else
849
 
      create_info->block_size= 0;
850
 
  }
851
 
}
852
 
 
853
839
void ha_heap::get_auto_increment(uint64_t, uint64_t, uint64_t,
854
840
                                 uint64_t *first_value,
855
841
                                 uint64_t *nb_reserved_values)