Author: areshetnyak
Date: 2012-03-12 11:09:42 -0400 (Mon, 12 Mar 2012)
New Revision: 5849
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
Log:
EXOJCR-1758 : The problem with eviction and stoping cache on repository stop was fixed.
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2012-03-12
15:05:14 UTC (rev 5848)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/lock/jbosscache/CacheableLockManagerImpl.java 2012-03-12
15:09:42 UTC (rev 5849)
@@ -510,17 +510,9 @@
if (shareable)
{
// The cache cannot be stopped since it can be shared so we remove the root node
instead
- try
- {
-
cache.getInvocationContext().getOptionOverrides().setSuppressPersistence(true);
- cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
- cache.removeNode(lockRoot);
- }
- finally
- {
-
cache.getInvocationContext().getOptionOverrides().setSuppressPersistence(false);
- cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(false);
- }
+ cache.getInvocationContext().getOptionOverrides().setSuppressPersistence(true);
+ cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+ cache.removeNode(lockRoot);
}
try
Show replies by date