Author: skabashnyuk
Date: 2010-01-21 08:32:56 -0500 (Thu, 21 Jan 2010)
New Revision: 1524
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JbossCacheIndexUpdateMonitor.java
Log:
EXOJCR-423 : create structure if need
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JbossCacheIndexUpdateMonitor.java
===================================================================
---
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JbossCacheIndexUpdateMonitor.java 2010-01-21
13:30:40 UTC (rev 1523)
+++
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/jbosscache/JbossCacheIndexUpdateMonitor.java 2010-01-21
13:32:56 UTC (rev 1524)
@@ -79,9 +79,12 @@
Node<Serializable, Object> cacheRoot = cache.getRoot();
// prepare cache structures
+ if (!cacheRoot.hasChild(PARAMETER_ROOT))
+ {
+ cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
+ cacheRoot.addChild(PARAMETER_ROOT).setResident(true);
+ }
- cacheRoot.addChild(PARAMETER_ROOT).setResident(true);
-
if (IndexerIoMode.READ_WRITE == modeHandler.getMode())
{
setUpdateInProgress(false);