incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1041314 - /sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java
Date Thu, 02 Dec 2010 09:10:18 GMT
Author: cziegeler
Date: Thu Dec  2 09:10:18 2010
New Revision: 1041314

URL: http://svn.apache.org/viewvc?rev=1041314&view=rev
Log:
Fix potential dead log if the job is processed "very" fast

Modified:
    sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java

Modified: sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java?rev=1041314&r1=1041313&r2=1041314&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java
(original)
+++ sling/trunk/bundles/extensions/event/src/main/java/org/apache/sling/event/impl/jobs/queues/OrderedJobQueue.java
Thu Dec  2 09:10:18 2010
@@ -137,8 +137,8 @@ public final class OrderedJobQueue exten
     protected void notifyFinished(final JobEvent rescheduleInfo) {
         this.jobEvent = rescheduleInfo;
         this.logger.debug("Notifying job queue {} to continue processing.", this.queueName);
-        this.isWaiting = false;
         synchronized ( this.syncLock ) {
+            this.isWaiting = false;
             this.syncLock.notify();
         }
     }



Mime
View raw message