Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McDuff2008-11-06 19:31:34 +0000
committerSimon McDuff2008-11-06 19:31:34 +0000
commit7dd4f62651f9499028f0ec25353d618ba8a25f90 (patch)
treee745a9e2d4f3acae09800e072370253396c9a878 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo
parent1a7af4beec704abfefa9e731c3b73a66b1c381a0 (diff)
downloadcdo-7dd4f62651f9499028f0ec25353d618ba8a25f90.tar.gz
cdo-7dd4f62651f9499028f0ec25353d618ba8a25f90.tar.xz
cdo-7dd4f62651f9499028f0ec25353d618ba8a25f90.zip
[254489] [CDO] CDOTransaction.postCommit not adjusting the Transaction/View reference
https://bugs.eclipse.org/bugs/show_bug.cgi?id=254489
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
index 9da1fdef14..fdf07f55f7 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/CDOTransactionImpl.java
@@ -1134,6 +1134,13 @@ public class CDOTransactionImpl extends CDOViewImpl implements InternalCDOTransa
{
Set<CDOID> detachedIDs = new HashSet<CDOID>(getDetachedObjects().keySet());
Collection<CDORevisionDelta> deltasCopy = new ArrayList<CDORevisionDelta>(deltas);
+
+ // Adjust references in the deltas. Could be used in ChangeSubscription from others CDOView
+ for (CDORevisionDelta dirtyObjectDelta : deltasCopy)
+ {
+ ((InternalCDORevisionDelta)dirtyObjectDelta).adjustReferences(result.getReferenceAdjuster());
+ }
+
session.handleCommitNotification(timeStamp, dirtyIDs, detachedIDs, deltasCopy, getTransaction());
}

Back to the top