jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r314930 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Wed, 12 Oct 2005 14:29:45 GMT
Author: mreutegg
Date: Wed Oct 12 07:29:38 2005
New Revision: 314930

URL: http://svn.apache.org/viewcvs?rev=314930&view=rev
Log:
JCR-254: Repository lock file is not removed on shutdown

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=314930&r1=314929&r2=314930&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/RepositoryImpl.java Wed
Oct 12 07:29:38 2005
@@ -70,6 +70,7 @@
 import java.util.Iterator;
 import java.util.Properties;
 import java.nio.channels.FileLock;
+import java.nio.channels.FileChannel;
 
 /**
  * A <code>RepositoryImpl</code> ...
@@ -270,7 +271,9 @@
     protected void releaseRepositoryLock() {
         if (repLock != null) {
             try {
+                FileChannel channel = repLock.channel();
                 repLock.release();
+                channel.close();
             } catch (IOException e) {
                 // ignore
             }



Mime
View raw message