[exo-jcr-commits] exo-jcr SVN: r2294 - kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Apr 21 10:07:02 EDT 2010


Author: nfilotto
Date: 2010-04-21 10:07:02 -0400 (Wed, 21 Apr 2010)
New Revision: 2294

Modified:
   kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
Log:
EXOJCR-672: Temporary fix has been removed since it is fixed in JBC

Modified: kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java
===================================================================
--- kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java	2010-04-21 14:05:54 UTC (rev 2293)
+++ kernel/trunk/exo.kernel.component.ext.cache.impl.jboss.v3/src/main/java/org/exoplatform/services/cache/impl/jboss/AbstractExoCache.java	2010-04-21 14:07:02 UTC (rev 2294)
@@ -43,7 +43,6 @@
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
-import java.util.Set;
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.atomic.AtomicInteger;
 
@@ -108,22 +107,10 @@
    /**
     * {@inheritDoc}
     */
-   @SuppressWarnings("unchecked")
    public void clearCache()
    {
-      Set<Fqn> internalFqns = cache.getInternalFqns();
-      for (Object childName : cache.peek(Fqn.ROOT, false, false).getChildrenNames())
-      {
-         if (!internalFqns.contains(Fqn.fromElements(childName)))
-         {
-            cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
-            cache.removeNode(Fqn.fromRelativeElements(Fqn.ROOT, childName));
-         }
-      }
-      // The code above can be replaced with the code below once the bug JBCACHE-1577
-      // will be fixed in JBC
-//      cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
-//      cache.removeNode(Fqn.ROOT);
+      cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+      cache.removeNode(Fqn.ROOT);
       onClearCache();
    }
 



More information about the exo-jcr-commits mailing list