jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r412430 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Date Wed, 07 Jun 2006 15:34:39 GMT
Author: tripod
Date: Wed Jun  7 08:34:39 2006
New Revision: 412430

URL: http://svn.apache.org/viewvc?rev=412430&view=rev
Log:
JCR-445: repository is locked by WorkspaceJanitor when another workspace is reindexing

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

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java?rev=412430&r1=412429&r2=412430&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/RepositoryImpl.java
Wed Jun  7 08:34:39 2006
@@ -1387,7 +1387,9 @@
          */
         boolean isInitialized() {
             try {
-                initLock.readLock().attempt(0);
+                if (!initLock.readLock().attempt(0)) {
+                    return false;
+                }
             } catch (InterruptedException e) {
                 return false;
             }



Mime
View raw message