You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/04/02 11:51:52 UTC

svn commit: r643821 - /incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java

Author: cziegeler
Date: Wed Apr  2 02:51:45 2008
New Revision: 643821

URL: http://svn.apache.org/viewvc?rev=643821&view=rev
Log:
Correctl handle retry count: retry exactly the number specified which makes (worst case): number of executions = 1 + number of retries.

Modified:
    incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java

Modified: incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java?rev=643821&r1=643820&r2=643821&view=diff
==============================================================================
--- incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java (original)
+++ incubator/sling/trunk/sling/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java Wed Apr  2 02:51:45 2008
@@ -703,7 +703,7 @@
                     retryCount = (Integer)job.getProperty(EventUtil.PROPERTY_JOB_RETRY_COUNT);
                 }
                 retryCount++;
-                if ( retryCount >= retries ) {
+                if ( retryCount > retries ) {
                     reschedule = false;
                 }
                 // update event with retry count