Author: manik.surtani(a)jboss.com
Date: 2008-01-04 12:18:33 -0500 (Fri, 04 Jan 2008)
New Revision: 4987
Modified:
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java
Log:
JBCACHE-1251 - Re-adding invalidated node fails with invalidation + pessimistic locking
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-04
16:55:01 UTC (rev 4986)
+++
core/trunk/src/main/java/org/jboss/cache/interceptors/PessimisticLockInterceptor.java 2008-01-04
17:18:33 UTC (rev 4987)
@@ -388,6 +388,10 @@
return false;
}
}
+ else
+ {
+ if (!currentNode.isValid() && createIfNotExists)
currentNode.setValid(true, false);
+ }
NodeLock.LockType lockTypeRequired = NodeLock.LockType.READ;
if (created || writeLockNeeded(ctx, lockType, currentIndex,
acquireWriteLockOnParent, createIfNotExists, fqn, currentNode))
{
Show replies by date