From 953af0b5a3ba55b68ef7792df7f73524120c1d13 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Fri, 14 Oct 2011 04:33:44 +0000 Subject: [PATCH] Fixed ALF-10699: Nodes not getting put into new transactions during various operations - This concludes the bug and more of the node cache refactor - This final part contains: - parentAssocsCache and other node caches are now immutable (at least for the shared cache) - Remove some of the cache double-checks associated with parentAssocsCache - TODO: Simplify getNodeRefStatus and replace with cache read-through for index trackers - TODO: Node archive performance - TODO: Inverse parentAssocsCache is broken, so it needs fixing (minor) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../node-common-SqlMap.xml | 10 +- .../repo/domain/node/AbstractNodeDAOImpl.java | 633 +++++++++--------- .../repo/domain/node/ParentAssocsInfo.java | 26 +- 3 files changed, 332 insertions(+), 337 deletions(-) diff --git a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml index ce0d3412df..7aaf7e6327 100644 --- a/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml +++ b/config/alfresco/ibatis/org.hibernate.dialect.Dialect/node-common-SqlMap.xml @@ -119,10 +119,12 @@ + + @@ -880,10 +882,12 @@ select assoc.id as id, parentNode.id as parentNodeId, + parentNode.version as parentNodeVersion, parentStore.protocol as parentNodeProtocol, parentStore.identifier as parentNodeIdentifier, parentNode.uuid as parentNodeUuid, childNode.id as childNodeId, + childNode.version as childNodeVersion, childStore.protocol as childNodeProtocol, childStore.identifier as childNodeIdentifier, childNode.uuid as childNodeUuid, @@ -895,10 +899,6 @@ assoc.is_primary as is_primary, assoc.assoc_index as assoc_index - - - ,childNode.transaction_id as childNodeTxnId - from alf_child_assoc assoc @@ -1140,7 +1140,7 @@