~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/table.cc

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
749
749
    DBUG_PRINT("info", ("extra segment size is %u bytes", n_length));
750
750
    if (!(next_chunk= buff= (uchar*) my_malloc(n_length, MYF(MY_WME))))
751
751
      goto err;
752
 
    if (my_pread(file, buff, n_length, record_offset + share->reclength,
753
 
                 MYF(MY_NABP)))
 
752
    if (pread(file, buff, n_length, record_offset + share->reclength) == 0)
754
753
    {
755
754
      goto err;
756
755
    }
903
902
                                     rec_buff_length)))
904
903
    goto err;                                   /* purecov: inspected */
905
904
  share->default_values= record;
906
 
  if (my_pread(file, record, (size_t) share->reclength,
907
 
               record_offset, MYF(MY_NABP)))
 
905
  if (pread(file, record, (size_t) share->reclength, record_offset) == 0)
908
906
    goto err;                                   /* purecov: inspected */
909
907
 
910
908
  VOID(my_seek(file,pos+288,MY_SEEK_SET,MYF(0)));