jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r598927 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AbstractIndex.java
Date Wed, 28 Nov 2007 09:34:49 GMT
Author: mreutegg
Date: Wed Nov 28 01:34:48 2007
New Revision: 598927

URL: http://svn.apache.org/viewvc?rev=598927&view=rev
Log:
JCR-1240: Index segments are only committed on close

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AbstractIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AbstractIndex.java?rev=598927&r1=598926&r2=598927&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AbstractIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/AbstractIndex.java
Wed Nov 28 01:34:48 2007
@@ -318,11 +318,6 @@
      * @throws IOException if an error occurs while commiting changes.
      */
     protected synchronized void commit(boolean optimize) throws IOException {
-        // if index is not locked there are no pending changes
-        if (!IndexReader.isLocked(getDirectory())) {
-            return;
-        }
-
         if (indexReader != null) {
             indexReader.commitDeleted();
         }



Mime
View raw message