~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/ha_archive.cc

  • Committer: Eric Day
  • Date: 2009-08-31 23:50:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1134.
  • Revision ID: eday@oddments.org-20090831235037-hwwe6zhq94o4lxtd
Removed purecov messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
563
563
 
564
564
  if (rc == HA_ERR_CRASHED_ON_USAGE && !(open_options & HA_OPEN_FOR_REPAIR))
565
565
  {
566
 
    /* purecov: begin inspected */
567
566
    free_share();
568
567
    return(rc);
569
 
    /* purecov: end */
570
568
  }
571
569
  else if (rc == HA_ERR_OUT_OF_MEM)
572
570
  {
780
778
  unsigned char *ptr;
781
779
 
782
780
  if (fix_rec_buff(max_row_length(record)))
783
 
    return(HA_ERR_OUT_OF_MEM); /* purecov: inspected */
 
781
    return(HA_ERR_OUT_OF_MEM);
784
782
 
785
783
  /* Copy null bits */
786
784
  memcpy(record_buffer->buffer, record, table->s->null_bytes);
1424
1422
  archive_record_buffer *r;
1425
1423
  if (!(r= (archive_record_buffer*) malloc(sizeof(archive_record_buffer))))
1426
1424
  {
1427
 
    return(NULL); /* purecov: inspected */
 
1425
    return(NULL);
1428
1426
  }
1429
1427
  r->length= (int)length;
1430
1428
 
1431
1429
  if (!(r->buffer= (unsigned char*) malloc(r->length)))
1432
1430
  {
1433
1431
    free((char*) r);
1434
 
    return(NULL); /* purecov: inspected */
 
1432
    return(NULL);
1435
1433
  }
1436
1434
 
1437
1435
  return(r);