subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bl...@apache.org
Subject svn commit: r1066270 - /subversion/trunk/subversion/libsvn_subr/io.c
Date Tue, 01 Feb 2011 23:32:11 GMT
Author: blair
Date: Tue Feb  1 23:32:11 2011
New Revision: 1066270

URL: http://svn.apache.org/viewvc?rev=1066270&view=rev
Log:
Follow up to the previous commit in RETRY_LOOP.

* subversion/libsvn_subr/io.c
  (RETRY_LOOP):
    Only increase the retry count if a sleep will be done.  This
    maintains the style of code that retries are done indefinitely as
    long as APR_STATUS_IS_EINTR() is true.

Modified:
    subversion/trunk/subversion/libsvn_subr/io.c

Modified: subversion/trunk/subversion/libsvn_subr/io.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/io.c?rev=1066270&r1=1066269&r2=1066270&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/io.c (original)
+++ subversion/trunk/subversion/libsvn_subr/io.c Tue Feb  1 23:32:11 2011
@@ -93,10 +93,11 @@
       int retries;                                                         \
       for (retries = 0;                                                    \
            retries < RETRY_MAX_ATTEMPTS && (retry_test);                   \
-           ++retries, os_err = APR_TO_OS_ERROR(err))                       \
+           os_err = APR_TO_OS_ERROR(err))                                  \
         {                                                                  \
           if (sleep_test)                                                  \
             {                                                              \
+              ++retries;                                                   \
               apr_sleep(sleep_count);                                      \
               if (sleep_count < RETRY_MAX_SLEEP)                           \
                 sleep_count *= 2;                                          \



Mime
View raw message