Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-29 14:25:36 -0400
committerEike Stepper2008-10-29 14:25:36 -0400
commitfd65d850f86d48599d893f720329d9ea27afcb2a (patch)
tree7409401d67d819c3f3079cf48c33140bce8f5b49
parentdb7bdcfd658b7300fc97f1a49e15188e9c5cfe30 (diff)
downloadcdo-fd65d850f86d48599d893f720329d9ea27afcb2a.tar.gz
cdo-fd65d850f86d48599d893f720329d9ea27afcb2a.tar.xz
cdo-fd65d850f86d48599d893f720329d9ea27afcb2a.zip
[252636] [DB] All DBStoreAccessors passivated to writers pool
https://bugs.eclipse.org/bugs/show_bug.cgi?id=252636
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
index 39c5d616cb..5aed2d70c2 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/Store.java
@@ -229,13 +229,13 @@ public abstract class Store extends Lifecycle implements IStore
protected void releaseAccessor(StoreAccessor accessor)
{
StoreAccessorPool pool = null;
- if (accessor instanceof IStoreAccessor)
+ if (accessor.isReader())
{
- pool = getWriterPool(accessor.getTransaction(), true);
+ pool = getReaderPool(accessor.getSession(), true);
}
else
{
- pool = getReaderPool(accessor.getSession(), true);
+ pool = getWriterPool(accessor.getTransaction(), true);
}
if (pool != null)

Back to the top