Author: manik.surtani(a)jboss.com
Date: 2008-01-02 06:28:57 -0500 (Wed, 02 Jan 2008)
New Revision: 4936
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
Log:
Ensure we dont acquire locks for isolation level of NONE
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
===================================================================
---
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java 2008-01-02
11:28:33 UTC (rev 4935)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java 2008-01-02
11:28:57 UTC (rev 4936)
@@ -310,7 +310,7 @@
boolean acquireLockOnParent, boolean
reverseRemoveCheck)
throws InterruptedException
{
- if (fqn == null) return false;
+ if (fqn == null || configuration.getIsolationLevel() == IsolationLevel.NONE) return
false;
boolean created;
long timeout = zeroLockTimeout ? 0 :
ctx.getContextLockAcquisitionTimeout(lock_acquisition_timeout);
Show replies by date