lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r805888 - /lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
Date Wed, 19 Aug 2009 17:12:06 GMT
Author: noble
Date: Wed Aug 19 17:12:05 2009
New Revision: 805888

URL: http://svn.apache.org/viewvc?rev=805888&view=rev
Log:
SOLR-1275 the last commit was failing the test.

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java?rev=805888&r1=805887&r2=805888&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/update/DirectUpdateHandler2.java Wed Aug 19
17:12:05 2009
@@ -402,10 +402,7 @@
       if (cmd.optimize) {
         openWriter();
         writer.optimize(cmd.maxOptimizeSegments);
-      }
-
-      closeWriter();
-      if (!cmd.optimize && cmd.expungeDeletes) {
+      } else if (cmd.expungeDeletes) {
         openWriter();
         writer.expungeDeletes();
       }



Mime
View raw message