jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1494904 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java
Date Thu, 20 Jun 2013 10:06:01 GMT
Author: mduerig
Date: Thu Jun 20 10:06:00 2013
New Revision: 1494904

URL: http://svn.apache.org/r1494904
Log:
OAK-144 Implement Observation
 break out of observation loop when stopping flag is set

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java?rev=1494904&r1=1494903&r2=1494904&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/observation/ChangeProcessor.java
Thu Jun 20 10:06:00 2013
@@ -161,7 +161,7 @@ class ChangeProcessor implements Runnabl
 
         try {
             ChangeSet changes = changeListener.getChanges();
-            while (changes != null) {
+            while (!stopping && changes != null) {
                 if (!(filterRef.get().excludeLocal() && changes.isLocal(observationManager.getContentSession())))
{
                     EventGeneratingNodeStateDiff diff = new EventGeneratingNodeStateDiff(changes);
                     changes.diff(VisibleDiff.wrap(diff));



Mime
View raw message