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

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@649429 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2008-04-18 09:35:44 +00:00
parent 6a4ae85775
commit 074df18090
1 changed files with 1 additions and 1 deletions

View File

@ -2198,7 +2198,7 @@ public class IndexWriter {
* {@link MergeScheduler} that is able to run merges in * {@link MergeScheduler} that is able to run merges in
* background threads. */ * background threads. */
public void optimize(boolean doWait) throws CorruptIndexException, IOException { public void optimize(boolean doWait) throws CorruptIndexException, IOException {
optimize(1, true); optimize(1, doWait);
} }
/** Just like {@link #optimize(int)}, except you can /** Just like {@link #optimize(int)}, except you can