summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-18 06:10:25 (EST)
committerEike Stepper2008-01-18 06:10:25 (EST)
commit30be9f7a056db7933e40097fc503102828441434 (patch)
treeecb712a6c4a2a10bf83f0b73865a5959408c1e15
parente3305e50733fdae0ab6bf8d3e1581122029deb60 (diff)
downloadcdo-30be9f7a056db7933e40097fc503102828441434.zip
cdo-30be9f7a056db7933e40097fc503102828441434.tar.gz
cdo-30be9f7a056db7933e40097fc503102828441434.tar.bz2
[214752] Concurrency problem with getRevision()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=214752
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
index b9f68cf..1f0db30 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/MEMStore.java
@@ -61,7 +61,6 @@ public class MEMStore extends Store
public synchronized CDORevision getRevision(CDOID rev, int version)
{
List<CDORevision> list = getList(rev);
-
for (CDORevision revision : list)
{
if (revision.getVersion() == version) return revision;
@@ -71,7 +70,6 @@ public class MEMStore extends Store
public synchronized void addRevision(CDORevision revision)
{
-
CDORevision rev = getRevision(revision.getID(), revision.getVersion());
if (rev == null)
{