jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r423488 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Date Wed, 19 Jul 2006 15:20:07 GMT
Author: stefan
Date: Wed Jul 19 08:20:06 2006
New Revision: 423488

URL: http://svn.apache.org/viewvc?rev=423488&view=rev
Log:
JCR-483 Lock tokens remains in session after unlock

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java?rev=423488&r1=423487&r2=423488&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Wed Jul 19 08:20:06 2006
@@ -316,6 +316,7 @@
             if (!session.equals(info.getLockHolder())) {
                 throw new LockException("Node not locked by session: " + node.safeGetJCRPath());
             }
+            session.removeLockToken(info.getLockToken(session), false);
 
             element.set(null);
             info.setLive(false);



Mime
View raw message