jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1355029 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ChangeProcessor.java
Date Thu, 28 Jun 2012 14:44:38 GMT
Author: mduerig
Date: Thu Jun 28 14:44:37 2012
New Revision: 1355029

URL: http://svn.apache.org/viewvc?rev=1355029&view=rev
Log:
OAK-144: Implement observation
stop during processing of large subtree if event listener is unregistered

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ChangeProcessor.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ChangeProcessor.java?rev=1355029&r1=1355028&r2=1355029&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ChangeProcessor.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/observation/ChangeProcessor.java
Thu Jun 28 14:44:37 2012
@@ -200,7 +200,7 @@ class ChangeProcessor extends TimerTask 
             propertyEvents = Iterators.empty();
         }
 
-        Iterator<Event> childNodeEvents = filter.includeChildren(jcrPath)
+        Iterator<Event> childNodeEvents = !stopped && filter.includeChildren(jcrPath)
             ? chain(generateChildEvents(eventType, path, node))
             : Iterators.<Event>empty();
 



Mime
View raw message