Author: manik.surtani(a)jboss.com
Date: 2008-05-29 08:44:10 -0400 (Thu, 29 May 2008)
New Revision: 5913
Modified:
core/trunk/src/main/java/org/jboss/cache/lock/NodeBasedLockManager.java
Log:
Querying locks should happen on all nodes, even deleted and invalid ones.
Modified: core/trunk/src/main/java/org/jboss/cache/lock/NodeBasedLockManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/NodeBasedLockManager.java 2008-05-29
12:43:40 UTC (rev 5912)
+++ core/trunk/src/main/java/org/jboss/cache/lock/NodeBasedLockManager.java 2008-05-29
12:44:10 UTC (rev 5913)
@@ -238,7 +238,9 @@
public boolean ownsLock(Fqn fqn, LockType lockType, Object owner)
{
- NodeLock lock = dataContainer.peek(fqn).getLock();
+ NodeSPI n = dataContainer.peek(fqn, true, true);
+ if (n == null) return false;
+ NodeLock lock = n.getLock();
switch (lockType)
{
case READ:
Show replies by date