jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r637107 - /jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Date Fri, 14 Mar 2008 14:20:52 GMT
Author: jukka
Date: Fri Mar 14 07:20:50 2008
New Revision: 637107

URL: http://svn.apache.org/viewvc?rev=637107&view=rev
Log:
1.4: Merged revision 637106 (JCR-1461)

Modified:
    jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java

Modified: jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java?rev=637107&r1=637106&r2=637107&view=diff
==============================================================================
--- jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
(original)
+++ jackrabbit/branches/1.4/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/lock/LockManagerImpl.java
Fri Mar 14 07:20:50 2008
@@ -390,11 +390,15 @@
      * @throws RepositoryException if an error occurs
      */
     public AbstractLockInfo getLockInfo(NodeId id) throws RepositoryException {
-        acquire();
-
+        Path path;
         try {
-            Path path = getPath(id);
+            path = getPath(id);
+        } catch (ItemNotFoundException e) {
+            return null;
+        }
 
+        acquire();
+        try {
             PathMap.Element element = lockMap.map(path, false);
             AbstractLockInfo info = (AbstractLockInfo) element.get();
             if (info != null) {
@@ -402,8 +406,6 @@
                     return info;
                 }
             }
-            return null;
-        } catch (ItemNotFoundException e) {
             return null;
         } finally {
             release();



Mime
View raw message