jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r801375 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Date Wed, 05 Aug 2009 19:28:39 GMT
Author: mreutegg
Date: Wed Aug  5 19:28:38 2009
New Revision: 801375

URL: http://svn.apache.org/viewvc?rev=801375&view=rev
Log:
JCR-2219: Improved background text extraction
- re-applied some of the 801135 changes

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?rev=801375&r1=801374&r2=801375&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Wed Aug  5 19:28:38 2009
@@ -762,6 +762,9 @@
         try {
             index.getIndexingQueue().waitUntilEmpty();
             index.flush();
+            // flush may have pushed nodes into the indexing queue
+            // -> wait again
+            index.getIndexingQueue().waitUntilEmpty();
         } catch (IOException e) {
             throw new RepositoryException("Failed to flush the index", e);
         }



Mime
View raw message