List:Commits« Previous MessageNext Message »
From:tim Date:September 15 2006 5:23am
Subject:bk commit into 5.1 tree (tsmith:1.2326)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tim. When tim does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-09-14 23:23:48-06:00, tsmith@stripped +1 -0
  Merge siva.hindu.god:/usr/home/tim/m/bk/tmp/50
  into  siva.hindu.god:/usr/home/tim/m/bk/tmp/51
  MERGE: 1.1810.2083.1

  mysys/my_pread.c@stripped, 2006-09-14 23:23:44-06:00, tsmith@stripped +0 -0
    Auto merged
    MERGE: 1.10.1.1

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tsmith
# Host:	siva.hindu.god
# Root:	/usr/home/tim/m/bk/tmp/51/RESYNC

--- 1.14/mysys/my_pread.c	2006-09-14 23:23:56 -06:00
+++ 1.15/mysys/my_pread.c	2006-09-14 23:23:56 -06:00
@@ -75,8 +75,12 @@ uint my_pread(File Filedes, byte *Buffer
       DBUG_PRINT("warning",("Read only %ld bytes off %ld from %d, errno: %d",
 			    readbytes,Count,Filedes,my_errno));
 #ifdef THREAD
-      if (readbytes == 0 && errno == EINTR)
-	continue;				/* Interrupted */
+      if ((readbytes == 0 || (int) readbytes == -1) && errno == EINTR)
+      {
+        DBUG_PRINT("debug", ("my_pread() was interrupted and returned %d",
+                             (int) readbytes));
+        continue;                              /* Interrupted */
+      }
 #endif
       if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
       {
@@ -170,8 +174,8 @@ uint my_pwrite(int Filedes, const byte *
       VOID(sleep(MY_WAIT_FOR_USER_TO_FIX_PANIC));
       continue;
     }
-    if ((writenbytes == 0 && my_errno == EINTR) ||
-	(writenbytes > 0 && (uint) writenbytes != (uint) -1))
+    if ((writenbytes > 0 && (uint) writenbytes != (uint) -1) ||
+        my_errno == EINTR)
       continue;					/* Retry */
 #endif
     if (MyFlags & (MY_NABP | MY_FNABP))
Thread
bk commit into 5.1 tree (tsmith:1.2326)tim15 Sep