Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2012-01-26 08:40:47 -0500
committerStefan Winkler2012-01-26 08:40:47 -0500
commit383ecd8abc866df961d384dbdc8076f4c5104430 (patch)
tree25379be901d98b394571b47eb4520fbc92005ac8
parent2e0525193ca757cf5756597a67c892dfc6a4c814 (diff)
downloadcdo-bugs/369799.tar.gz
cdo-bugs/369799.tar.xz
cdo-bugs/369799.zip
[369799] [MongoDB] Monitor Timeouts during large commits bugs/369799
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369799
-rw-r--r--plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
index 130969dc36..affa1249fc 100644
--- a/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
+++ b/plugins/org.eclipse.emf.cdo.server.mongodb/src/org/eclipse/emf/cdo/server/internal/mongodb/Commits.java
@@ -46,6 +46,7 @@ import org.eclipse.emf.cdo.spi.server.InternalRepository;
import org.eclipse.net4j.util.ObjectUtil;
import org.eclipse.net4j.util.StringUtil;
import org.eclipse.net4j.util.om.monitor.OMMonitor;
+import org.eclipse.net4j.util.om.monitor.OMMonitor.Async;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EClassifier;
@@ -404,8 +405,9 @@ public class Commits extends Coll
monitor.worked();
+ Async async = monitor.forkAsync(100);
collection.insert(doc);
- monitor.worked(100);
+ async.stop();
}
finally
{

Back to the top