[exo-jcr-commits] exo-jcr SVN: r1627 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Feb 1 05:13:33 EST 2010


Author: nfilotto
Date: 2010-02-01 05:13:33 -0500 (Mon, 01 Feb 2010)
New Revision: 1627

Modified:
   jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ParentNodeEvictionActionPolicy.java
Log:
EXOJCR-460: We use the method getChildrenNamesDirect to avoid going through the interceptor chain

Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ParentNodeEvictionActionPolicy.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ParentNodeEvictionActionPolicy.java	2010-01-29 16:24:58 UTC (rev 1626)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/jbosscache/ParentNodeEvictionActionPolicy.java	2010-02-01 10:13:33 UTC (rev 1627)
@@ -19,6 +19,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.jboss.cache.Cache;
+import org.jboss.cache.CacheSPI;
 import org.jboss.cache.Fqn;
 import org.jboss.cache.eviction.DefaultEvictionActionPolicy;
 import org.jboss.cache.eviction.EvictionActionPolicy;
@@ -74,7 +75,10 @@
          {
             // The expected data structure is of type $CHILD_NODES/${node-id}/${sub-node-name} or
             // $CHILD_PROPS/${node-id}/${sub-property-name}
-            Set<Object> names = cache.getChildrenNames(parentFqn);
+            
+            // We use the method getChildrenNamesDirect to avoid going through 
+            // the interceptor chain (EXOJCR-460)
+            Set<Object> names = ((CacheSPI)cache).getNode(parentFqn).getChildrenNamesDirect();
             if (names.isEmpty() || (names.size() == 1 && names.contains(fqn.get(2))))
             {
                if (log.isTraceEnabled())



More information about the exo-jcr-commits mailing list