summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-01-19 05:56:39 (EST)
committerEike Stepper2008-01-19 05:56:39 (EST)
commit2dbf8d19713b93dfae6a81f811dcd5fce190fc23 (patch)
treee4362fb0b6b9e617f486f8494a1fb142961969fb
parent0d9359c5096764c153c9d2d6c907e123cc4fea65 (diff)
downloadcdo-2dbf8d19713b93dfae6a81f811dcd5fce190fc23.zip
cdo-2dbf8d19713b93dfae6a81f811dcd5fce190fc23.tar.gz
cdo-2dbf8d19713b93dfae6a81f811dcd5fce190fc23.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/StoreUtil.java5
-rw-r--r--plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java2
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBException.java2
3 files changed, 8 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/StoreUtil.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/StoreUtil.java
index b901d27..5d0f1b1 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/StoreUtil.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/StoreUtil.java
@@ -29,6 +29,11 @@ public final class StoreUtil
return new NOOPStore();
}
+ public static IStore createMEMStore()
+ {
+ return new MEMStore();
+ }
+
public static void setReader(IStoreReader reader)
{
THREAD_LOCAL.set(reader);
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
index 2c0387c..dc38067 100644
--- a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
+++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/emf/cdo/tests/AbstractCDOTest.java
@@ -75,7 +75,7 @@ public abstract class AbstractCDOTest extends AbstractTransportTest
protected IStore createStore()
{
- return StoreUtil.createNOOPStore();
+ return StoreUtil.createMEMStore();
}
// protected DBStore createDBStore()
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBException.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBException.java
index 4cd4fd5..4a16e1d 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBException.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBException.java
@@ -11,6 +11,8 @@
package org.eclipse.net4j.db;
/**
+ * TODO Provide consistent exception hierarchy
+ *
* @author Eike Stepper
*/
public class DBException extends RuntimeException