Author: tolusha
Date: 2010-09-10 05:38:16 -0400 (Fri, 10 Sep 2010)
New Revision: 3101
Modified:
jcr/branches/1.14-ISPN/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java
Log:
EXOJCR-830: code review
Modified:
jcr/branches/1.14-ISPN/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java
===================================================================
---
jcr/branches/1.14-ISPN/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java 2010-09-09
16:41:35 UTC (rev 3100)
+++
jcr/branches/1.14-ISPN/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/infinispan/ISPNCacheWorkspaceStorageCache.java 2010-09-10
09:38:16 UTC (rev 3101)
@@ -665,7 +665,6 @@
protected void updateMixin(NodeData node)
{
NodeData prevData = (NodeData)cache.put(new CacheId(node.getIdentifier()), node);
- cache.put(new CacheQPath(node.getParentIdentifier(), node.getQPath()),
node.getIdentifier());
if (prevData != null)
{
@@ -691,8 +690,8 @@
*/
protected void updateInBuffer(final NodeData node, final NodeData prevNode)
{
-
- if (node.getIdentifier().equals(prevNode.getIdentifier()))
+ CacheQPath prevKey = new CacheQPath(node.getParentIdentifier(),
prevNode.getQPath());
+ if (node.getIdentifier().equals(cache.getFromBuffer(prevKey)))
{
if (cache.remove(new CacheQPath(prevNode.getParentIdentifier(),
prevNode.getQPath())) != null)
{