[exo-jcr-commits] exo-jcr SVN: r4094 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/infinispan.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Mar 15 10:20:35 EDT 2011
Author: nfilotto
Date: 2011-03-15 10:20:35 -0400 (Tue, 15 Mar 2011)
New Revision: 4094
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java
Log:
EXOJCR-834: Reset the manager before storing it into the map since the default config is used as template to define a new configuration which can cause issues if the first cache to register itself is not a JCR cache but a JCR Lock or JCR Indexing because the Cache Loaders will be configured by default
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java 2011-03-15 13:54:34 UTC (rev 4093)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/infinispan/ISPNCacheFactory.java 2011-03-15 14:20:35 UTC (rev 4094)
@@ -164,6 +164,9 @@
}
else
{
+ // Reset the manager before storing it into the map since the default config is used as
+ // template to define a new configuration
+ manager = new DefaultCacheManager(gc);
CACHE_MANAGERS.put(gc, manager);
if (log.isInfoEnabled())
{
More information about the exo-jcr-commits
mailing list