jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1066071 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Tue, 01 Feb 2011 15:36:50 GMT
Author: jukka
Date: Tue Feb  1 15:36:50 2011
New Revision: 1066071

URL: http://svn.apache.org/viewvc?rev=1066071&view=rev
Log:
JCR-2868: A failure to connect to a MySQL database when JackRabbit starts a session leaves
a .lock file in the repository. Subsequent sessions cannot be created by the same thread.

Remove the .lock file even when all else fails.

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=1066071&r1=1066070&r2=1066071&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Tue Feb  1 15:36:50 2011
@@ -400,6 +400,8 @@ public class RepositoryImpl extends Abst
                     // startup exception and only log it
                     log.error("In addition to startup fail, another unexpected problem "
+
                             "occurred while shutting down the repository again.", t);
+                    // Clear the repository lock if it was left in place
+                    repLock.release();
                 }
             }
         }



Mime
View raw message