Author: manik.surtani(a)jboss.com
Date: 2008-01-23 08:23:22 -0500 (Wed, 23 Jan 2008)
New Revision: 5201
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java
Log:
JBCACHE-1270 Optimistic commits dont need to use OOB messages since O/L guarantees
non-blocking reads.
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java 2008-01-23
13:22:45 UTC (rev 5200)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java 2008-01-23
13:23:22 UTC (rev 5201)
@@ -217,7 +217,8 @@
if (log.isDebugEnabled())
log.debug("running remote commit for " + gtx + " and
coord=" + cache.getLocalAddress());
- replicateCall(ctx, commit_method, remoteCallSync, ctx.getOptionOverrides(),
true);
+ // for an optimistic commit we don't need to force an OOB message since
O/L means we have non-blocking reads.
+ replicateCall(ctx, commit_method, remoteCallSync, ctx.getOptionOverrides(),
false);
}
catch (Exception e)
{
Show replies by date