~jaypipes/drizzle/bug534806

« back to all changes in this revision

Viewing changes to plugin/heap/ha_heap.cc

  • Committer: Brian Aker
  • Date: 2010-03-03 05:02:36 UTC
  • mfrom: (1309.2.19 build)
  • Revision ID: brian@gaz-20100303050236-y7dotibgwks12gyp
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
377
377
  int res;
378
378
  ha_statistic_increment(&system_status_var::ha_delete_count);
379
379
  res= heap_delete(file,buf);
380
 
  if (!res && table->s->tmp_table == NO_TMP_TABLE &&
 
380
  if (!res && table->s->tmp_table == STANDARD_TABLE &&
381
381
      ++records_changed*MEMORY_STATS_UPDATE_THRESHOLD > file->s->records)
382
382
  {
383
383
    /*
535
535
int ha_heap::delete_all_rows()
536
536
{
537
537
  heap_clear(file);
538
 
  if (table->s->tmp_table == NO_TMP_TABLE)
 
538
  if (table->s->tmp_table == STANDARD_TABLE)
539
539
  {
540
540
    /*
541
541
       We can perform this safely since only one writer at the time is