Author: manik.surtani(a)jboss.com
Date: 2008-05-15 10:26:09 -0400 (Thu, 15 May 2008)
New Revision: 5853
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java
Log:
Fixed local mode override issues
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java 2008-05-15
14:19:56 UTC (rev 5852)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/OptimisticReplicationInterceptor.java 2008-05-15
14:26:09 UTC (rev 5853)
@@ -154,7 +154,8 @@
public Object handleDefault(InvocationContext ctx, VisitableCommand command) throws
Throwable
{
- if (isLocalModeForced(ctx))
ctx.getTransactionEntry().addLocalModification((ReversibleCommand) command);
+ if (isLocalModeForced(ctx) && command instanceof ReversibleCommand)
+ ctx.getTransactionEntry().addLocalModification((ReversibleCommand) command);
return invokeNextInterceptor(ctx, command);
}
Show replies by date