Author: manik.surtani(a)jboss.com
Date: 2008-10-02 10:29:02 -0400 (Thu, 02 Oct 2008)
New Revision: 6828
Modified:
core/trunk/src/main/java/org/jboss/cache/marshall/CommandAwareRpcDispatcher.java
Log:
JBCACHE-1419: If async repl is used, marshalling should be done in a separate thread
Modified:
core/trunk/src/main/java/org/jboss/cache/marshall/CommandAwareRpcDispatcher.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/marshall/CommandAwareRpcDispatcher.java 2008-10-02
14:12:36 UTC (rev 6827)
+++
core/trunk/src/main/java/org/jboss/cache/marshall/CommandAwareRpcDispatcher.java 2008-10-02
14:29:02 UTC (rev 6828)
@@ -86,7 +86,7 @@
// what sort of a repl processor do we need?
Configuration c = componentRegistry.getComponent(Configuration.class);
- if (c.getCacheMode().isSynchronous() || c.getSerializationExecutorPoolSize() == 0)
+ if (c.getCacheMode().isSynchronous() || c.getSerializationExecutorPoolSize() <
1)
{
// in-process thread. Not async.
replicationProcessor = new WithinThreadExecutor();
Show replies by date