[infinispan-dev] Flags ignored during batch operations

Manik Surtani manik at jboss.org
Fri Jul 9 06:03:29 EDT 2010


On 9 Jul 2010, at 08:45, Mircea Markus wrote:

>> Carrying over flags is the generic fix, since it covers both the case of a tx being present and not.  So this should be done anyway, but we should also look at why a new context is created if there is no ongoing tx.
> If there's no ongoing tx then BatchingInterceptor creates one and then invokes next interceptor, so that all interceptors in the stack will be executed in a transactional context. This is where a new context (TxInvocationContext) is created, as the existing context is not transactional: NonTxInvocationContext.

Ah ok, that makes sense.  In any case flags should be copied across.

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list