jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r720540 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Tue, 25 Nov 2008 17:06:11 GMT
Author: mreutegg
Date: Tue Nov 25 09:06:10 2008
New Revision: 720540

URL: http://svn.apache.org/viewvc?rev=720540&view=rev
Log:
JCR-1879: "Directory was previously created with a different LockFactory" when open, close,
delete a repository in a loop

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?rev=720540&r1=720539&r2=720540&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Tue Nov 25 09:06:10 2008
@@ -751,8 +751,15 @@
                 ((PersistentIndex) indexes.get(i)).close();
             }
 
-            // finally close indexing queue
+            // close indexing queue
             indexingQueue.close();
+
+            // finally close directory
+            try {
+                indexDir.close();
+            } catch (IOException e) {
+                log.error("Exception while closing directory.", e);
+            }
         }
     }
 



Mime
View raw message