~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

  • Committer: Monty Taylor
  • Date: 2010-06-20 22:20:14 UTC
  • mfrom: (1626.1.4 build)
  • Revision ID: mordred@inaugust.com-20100620222014-9ae0uzuyo5lrhrld
Merge of Patrick's schema_dictionary test changes, Stewart's HA Status
variable move and more module program_options work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
324
324
int ha_heap::doInsertRecord(unsigned char * buf)
325
325
{
326
326
  int res;
327
 
  ha_statistic_increment(&system_status_var::ha_write_count);
328
327
  if (table->next_number_field && buf == table->record[0])
329
328
  {
330
329
    if ((res= update_auto_increment()))
346
345
int ha_heap::doUpdateRecord(const unsigned char * old_data, unsigned char * new_data)
347
346
{
348
347
  int res;
349
 
  ha_statistic_increment(&system_status_var::ha_update_count);
 
348
 
350
349
  res= heap_update(file,old_data,new_data);
351
350
  if (!res && ++records_changed*MEMORY_STATS_UPDATE_THRESHOLD >
352
351
              file->s->records)
363
362
int ha_heap::doDeleteRecord(const unsigned char * buf)
364
363
{
365
364
  int res;
366
 
  ha_statistic_increment(&system_status_var::ha_delete_count);
 
365
 
367
366
  res= heap_delete(file,buf);
368
367
  if (!res && table->getShare()->getType() == message::Table::STANDARD &&
369
368
      ++records_changed*MEMORY_STATS_UPDATE_THRESHOLD > file->s->records)