Apache Lucene open-source search software
LUCENE-1226: Fixed IndexWriter.addIndexes(IndexReader[]) to commit successfully created compound files.
Michael Buschb3e82f893931
diff --git a/CHANGES.txt b/CHANGES.txtindex e1e380d1bac..e012c6bb62d 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -71,6 +71,9 @@ Bug fixes4. LUCENE-1213: MultiFieldQueryParser was ignoring slop in caseof a single field phrase. (Trejkaz via Doron Cohen)+ 5. LUCENE-1226: Fixed IndexWriter.addIndexes(IndexReader[]) to commit+ successfully created compound files. (Michael Busch)+New features1. LUCENE-1137: Added Token.set/getFlags() accessors for passing more information about a Token through the analysisdiff --git a/src/java/org/apache/lucene/index/IndexWriter.java b/src/java/org/apache/lucene/index/IndexWriter.javaindex a028cb61528..cce6cc3204e 100644--- a/src/java/org/apache/lucene/index/IndexWriter.java+++ b/src/java/org/apache/lucene/index/IndexWriter.java@@ -3017,6 +3017,9 @@ public class IndexWriter {synchronized(this) {info.setUseCompoundFile(true);}++ success = true;+} finally {if (!success) {if (infoStream != null)