~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_iocache.c

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1644
1644
  {
1645
1645
    /* Of no overlap, write everything without buffering */
1646
1646
    if (pos + Count <= info->pos_in_file)
1647
 
      return my_pwrite(info->file, Buffer, Count, pos,
1648
 
                       info->myflags | MY_NABP);
 
1647
      return (pwrite(info->file, Buffer, Count, pos) == 0);
1649
1648
    /* Write the part of the block that is before buffer */
1650
1649
    length= (uint) (info->pos_in_file - pos);
1651
 
    if (my_pwrite(info->file, Buffer, length, pos, info->myflags | MY_NABP))
 
1650
    if (pwrite(info->file, Buffer, length, pos) == 0)
1652
1651
      info->error= error= -1;
1653
1652
    Buffer+=length;
1654
1653
    pos+=  length;