~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_table.cc

  • Committer: Brian Aker
  • Date: 2008-07-01 19:42:41 UTC
  • Revision ID: brian@tangent.org-20080701194241-kt9o3r2nd2zck6ii
Removed my versions of pread/pwrite from the Kernel

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
  uint io_size= global_ddl_log.io_size;
334
334
  DBUG_ENTER("read_ddl_log_file_entry");
335
335
 
336
 
  if (my_pread(file_id, file_entry_buf, io_size, io_size * entry_no,
337
 
               MYF(MY_WME)) != io_size)
 
336
  if (pread(file_id, file_entry_buf, io_size, io_size * entry_no) != io_size)
338
337
    error= TRUE;
339
338
  DBUG_RETURN(error);
340
339
}
357
356
  char *file_entry_buf= (char*)global_ddl_log.file_entry_buf;
358
357
  DBUG_ENTER("write_ddl_log_file_entry");
359
358
 
360
 
  if (my_pwrite(file_id, (uchar*)file_entry_buf,
361
 
                IO_SIZE, IO_SIZE * entry_no, MYF(MY_WME)) != IO_SIZE)
 
359
  if (pwrite(file_id, (uchar*)file_entry_buf,
 
360
             IO_SIZE, IO_SIZE * entry_no) != IO_SIZE)
362
361
    error= TRUE;
363
362
  DBUG_RETURN(error);
364
363
}