~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/my_pread.c

  • Committer: Monty Taylor
  • Date: 2008-07-02 14:35:48 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: monty@inaugust.com-20080702143548-onj30ry0sugr01uw
Removed all references to THREAD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    {
58
58
      DBUG_PRINT("warning",("Read only %d bytes off %u from %d, errno: %d",
59
59
                            (int) readbytes, (uint) Count,Filedes,my_errno));
60
 
#ifdef THREAD
61
60
      if ((readbytes == 0 || readbytes == (size_t) -1) && errno == EINTR)
62
61
      {
63
62
        DBUG_PRINT("debug", ("my_pread() was interrupted and returned %d",
64
63
                             (int) readbytes));
65
64
        continue;                              /* Interrupted */
66
65
      }
67
 
#endif
68
66
      if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
69
67
      {
70
68
        if (readbytes == (size_t) -1)
131
129
    }
132
130
    DBUG_PRINT("error",("Write only %u bytes", (uint) writenbytes));
133
131
#ifndef NO_BACKGROUND
134
 
#ifdef THREAD
135
132
    if (my_thread_var->abort)
136
133
      MyFlags&= ~ MY_WAIT_IF_FULL;              /* End if aborted by user */
137
 
#endif
138
134
    if ((my_errno == ENOSPC || my_errno == EDQUOT) &&
139
135
        (MyFlags & MY_WAIT_IF_FULL))
140
136
    {