You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/08/02 23:24:44 UTC

svn commit: r1615371 - /subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h

Author: stefan2
Date: Sat Aug  2 21:24:44 2014
New Revision: 1615371

URL: http://svn.apache.org/r1615371
Log:
Follow-up on r1615369.

* subversion/tests/libsvn_subr/named_atomic-test-common.h
  (test_pipeline_loop): Skip watchdog and throttling when polling
                        was not necessary.  I.e. let the tokens be
                        passed on without delay.

Modified:
    subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h

Modified: subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h?rev=1615371&r1=1615370&r2=1615371&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h (original)
+++ subversion/trunk/subversion/tests/libsvn_subr/named_atomic-test-common.h Sat Aug  2 21:24:44 2014
@@ -162,8 +162,11 @@ test_pipeline_loop(svn_named_atomic__t *
       do
         {
           SVN_ERR(svn_named_atomic__write(&value, 0, atomic_in));
-          SVN_ERR(check_watchdog(watchdog, &done));
-          if (done) return SVN_NO_ERROR;
+          if (!value)
+            {
+              SVN_ERR(check_watchdog(watchdog, &done));
+              if (done) return SVN_NO_ERROR;
+            }
         }
       while (value == 0);
 
@@ -178,8 +181,11 @@ test_pipeline_loop(svn_named_atomic__t *
                                             value,
                                             0,
                                             atomic_out));
-          SVN_ERR(check_watchdog(watchdog, &done));
-          if (done) return SVN_NO_ERROR;
+          if (old_value)
+            {
+              SVN_ERR(check_watchdog(watchdog, &done));
+              if (done) return SVN_NO_ERROR;
+            }
         }
       while (old_value != 0);