[exo-jcr-commits] exo-jcr SVN: r1385 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jan 14 03:57:10 EST 2010


Author: skabashnyuk
Date: 2010-01-14 03:57:09 -0500 (Thu, 14 Jan 2010)
New Revision: 1385

Modified:
   jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JBossCacheIndexInfos.java
Log:
EXOJCR-331 : (Set<String>)data.get(LIST_KEY);

Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JBossCacheIndexInfos.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JBossCacheIndexInfos.java	2010-01-14 08:46:46 UTC (rev 1384)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JBossCacheIndexInfos.java	2010-01-14 08:57:09 UTC (rev 1385)
@@ -92,7 +92,8 @@
     * @param fileName where index names are stored.
     * @param cache instance of JbossCache that is used to deliver index names
     */
-   public JBossCacheIndexInfos(String fileName, Cache<Serializable, Object> cache, boolean system, IndexerIoModeHandler modeHandler)
+   public JBossCacheIndexInfos(String fileName, Cache<Serializable, Object> cache, boolean system,
+      IndexerIoModeHandler modeHandler)
    {
       super(fileName);
       this.cache = cache;
@@ -172,14 +173,14 @@
          }
          else
          {
-            set = (Set<String>)data.get(namesFqn);            
+            set = (Set<String>)data.get(LIST_KEY);
          }
          if (set == null)
          {
             log.warn("The data cannot be found, we will try to get it from the cache");
             // read from cache to update lists
             set = (Set<String>)cache.get(namesFqn, LIST_KEY);
-         }         
+         }
          if (set != null)
          {
             setNames(set);



More information about the exo-jcr-commits mailing list