Skip to content

Apache Lucene open-source search software

LUCENE-1266: actually use the doWait param in IndexWriter.optimize(boolean doWait)

Michael McCandless074df1809004
diff --git a/src/java/org/apache/lucene/index/IndexWriter.java b/src/java/org/apache/lucene/index/IndexWriter.java
index bbb6bdf17f2..7ab597e685f 100644
--- a/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/src/java/org/apache/lucene/index/IndexWriter.java
@@ -2198,7 +2198,7 @@ public class IndexWriter {
* {@link MergeScheduler} that is able to run merges in
* background threads. */
public void optimize(boolean doWait) throws CorruptIndexException, IOException {
- optimize(1, true);
+ optimize(1, doWait);
}
/** Just like {@link #optimize(int)}, except you can